/* Niva Capital Services – public website. Colours and font match the Niva theme of the group-loan app. */
:root {
  --navy: #5b3fa8;          /* app --color-accent */
  --navy-dark: #3d2b75;     /* app login gradient, middle */
  --navy-deep: #22163f;     /* app login gradient, end */
  --accent-muted: #d4d1e9;  /* app --color-accent-muted */
  --navy-soft: #efedf8;
  --grey: #474747;
  --grey-light: #f1f1f1;    /* app --color-background-body */
  --gold: #c9a227;
  --text: #000000;
  --muted: #474747;          /* app --color-text-secondary */
  --border: #e2e2e2;
  --white: #fff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(61, 43, 117, 0.10);
  --gradient: linear-gradient(155deg, #5a429e 0%, #3d2b75 55%, #22163f 100%); /* app login panel */
  --serif: "Inter", system-ui, sans-serif; /* headings use Inter, like the app */
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Tamil", Arial, sans-serif;
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; color: var(--text); background: var(--white); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy-dark); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Top strip */
.topbar { background: var(--navy-deep); color: #d4d1e9; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; gap: 12px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.topbar a { color: #fff; text-decoration: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--border); backdrop-filter: blur(6px); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 46px; height: 46px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-family: var(--serif); font-size: 1.3rem; font-weight: 800; letter-spacing: .1em; color: var(--navy); }
.brand-text span { font-size: .66rem; letter-spacing: .22em; color: var(--grey); text-transform: uppercase; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; align-items: center; }
.nav a { display: block; padding: 9px 13px; border-radius: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); background: var(--navy-soft); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 4px 0; }

@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: absolute; top: 74px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--border); display: none; box-shadow: var(--shadow); }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 16px; }
  .nav .btn { margin: 8px 0 0; text-align: center; }
}

/* Buttons */
.btn { display: inline-block; background: var(--navy); color: #fff !important; padding: 12px 22px; border-radius: 10px; text-decoration: none; font-weight: 600; border: 2px solid var(--navy); transition: background .15s, transform .15s; cursor: pointer; font-size: 1rem; }
.btn:hover { background: var(--navy-dark); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--navy) !important; }
.btn-outline:hover { background: var(--navy-soft); }
.btn-light { background: #fff; color: var(--navy) !important; border-color: #fff; }
.btn-light:hover { background: var(--navy-soft); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-soft) 0%, #fff 60%); padding: 72px 0 80px; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--navy); background: #fff; border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero p.lead { font-size: 1.15rem; color: var(--muted); max-width: 560px; }
.hero-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 28px; border: 1px solid var(--border); }
.hero-card h3 { margin-bottom: 4px; }
.hero-card .figure { font-family: var(--serif); font-size: 2.6rem; color: var(--navy); font-weight: 700; }
.hero-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 22px; }
.hero-card dt { font-size: .8rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.hero-card dd { margin: 0; font-weight: 700; font-size: 1.15rem; color: var(--navy-dark); }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; } .hero { padding: 48px 0 56px; } }

/* Sections */
section { padding: 72px 0; }
.section-alt { background: var(--grey-light); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } section { padding: 52px 0; } }

.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.card p:last-child { margin-bottom: 0; }
.icon { width: 48px; height: 48px; border-radius: 12px; background: var(--accent-muted); color: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 24px 24px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .95rem; }
.step h3 { margin-top: 8px; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 34px; } }
@media (max-width: 620px) { .steps { grid-template-columns: 1fr; } }

/* Split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.check-list { list-style: none; padding: 0; margin: 0 0 1.2em; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 18px; height: 18px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--navy-soft); color: var(--navy-dark); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tfoot td { font-weight: 700; background: var(--grey-light); }

/* Page banner */
.page-banner { background: var(--gradient); color: #fff; padding: 56px 0 50px; }
.page-banner h1 { color: #fff; margin-bottom: .3em; }
.page-banner p { color: #d4d1e9; margin: 0; max-width: 640px; }
.crumbs { font-size: .85rem; color: #b9b0e0; margin-bottom: 10px; }
.crumbs a { color: #fff; }

/* CTA band */
.cta-band { background: var(--gradient); color: #fff; border-radius: 20px; padding: 44px; display: flex; gap: 24px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { color: #d4d1e9; margin: 0; }

/* Notice */
.notice { border-left: 4px solid var(--gold); background: #fffaf0; padding: 16px 20px; border-radius: 8px; font-size: .95rem; }
.placeholder { background: #fff3cd; outline: 1px dashed #c9a227; padding: 0 4px; border-radius: 3px; }

/* Contact */
.contact-item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-item .icon { flex: none; margin: 0; }
.contact-item strong { display: block; color: var(--navy-dark); }
form .field { margin-bottom: 14px; }
form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
form input, form select, form textarea { width: 100%; padding: 11px 13px; border: 1px solid var(--border); border-radius: 9px; font: inherit; background: #fff; }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.map { border: 0; width: 100%; height: 320px; border-radius: var(--radius); }

/* Prose pages */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.45rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9c2e6; padding: 60px 0 0; font-size: .94rem; }
.site-footer h4 { color: #fff; font-family: var(--serif); font-size: 1.1rem; margin: 0 0 14px; }
.site-footer a { color: #c9c2e6; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 36px; }
.footer-brand img { width: 64px; background: #fff; border-radius: 12px; padding: 4px; margin-bottom: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 44px; padding: 18px 0; font-size: .84rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Floating call button */
.call-fab { position: fixed; right: 18px; bottom: 18px; z-index: 60; background: #1f9d55; color: #fff; border-radius: 999px; padding: 12px 18px; display: flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 600; box-shadow: 0 8px 22px rgba(0,0,0,.2); }
.call-fab svg { width: 20px; height: 20px; }
