/* Sakshar ERP public website (saksharerp.com). Mobile first, no outside fonts or scripts. */
:root {
  --navy: #0F2A4A;
  --navy2: #173b66;
  --gold: #E2B33C;
  --gold-soft: #fbf3dc;
  --ink: #1d2733;
  --muted: #55606e;
  --line: #dfe4ea;
  --bg: #ffffff;
  --bg2: #f5f7fa;
  --ok: #166534;
  --okbg: #dcfce7;
  --err: #a11a1a;
  --errbg: #fde8e8;
  --radius: 12px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: Verdana, Geneva, "DejaVu Sans", "Nirmala UI", "Noto Sans Devanagari", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy2); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; color: var(--navy); margin: 0 0 .5em; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--gold); color: var(--navy); padding: 8px 14px; z-index: 50; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(255,255,255,.08); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 60px; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.brand:hover { color: #fff; }
.brand .mark { width: 36px; height: 36px; border-radius: 9px; background: var(--gold); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; font-size: 1.3rem; font-weight: 700; line-height: 1; }
.brand img { height: 40px; width: auto; max-width: 200px; }
.brand img.mark-img { width: 38px; height: 38px; border-radius: 9px; }
.foot .by { display: flex; align-items: center; gap: 14px; }
.foot .company-logo { width: auto; height: 56px; background: #fff; border-radius: 8px; padding: 3px; flex-shrink: 0; }
.menu-btn { display: none; background: none; color: #fff; border: 1px solid rgba(255,255,255,.4); border-radius: 8px; padding: 6px 12px; font: inherit; font-size: .95rem; cursor: pointer; }
.top .wrap { flex-wrap: wrap; }
.nav { display: flex; flex-wrap: wrap; gap: 2px 4px; padding: 0 0 10px; width: 100%; }
.nav a { color: #e8eef6; text-decoration: none; padding: 7px 10px; border-radius: 8px; font-size: .93rem; }
.nav a:hover, .nav a:focus-visible { background: rgba(255,255,255,.1); color: #fff; }
.nav a.cta { background: var(--gold); color: var(--navy); font-weight: 700; }
.js .menu-btn { display: inline-block; }
.js .nav { display: none; flex-direction: column; }
.js .nav.open { display: flex; }
.js .nav a.cta { text-align: center; margin-top: 4px; }
@media (min-width: 900px) {
  .top .wrap { flex-wrap: nowrap; }
  .js .menu-btn { display: none; }
  .nav, .js .nav { display: flex; flex-direction: row; align-items: center; width: auto; padding: 0; flex-wrap: nowrap; }
  .nav a.cta, .js .nav a.cta { margin: 0 0 0 8px; padding: 8px 14px; }
}

/* ---------- buttons ---------- */
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 700; text-decoration: none; border: 2px solid transparent; font-family: inherit; font-size: 1rem; cursor: pointer; }
.btn.gold { background: var(--gold); color: var(--navy); }
.btn.gold:hover { background: #ecc35a; color: var(--navy); }
.btn.line { border-color: rgba(255,255,255,.6); color: #fff; }
.btn.line:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn.navy { background: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy2); color: #fff; }
.btn[disabled] { opacity: .6; cursor: wait; }

/* ---------- hero ---------- */
.hero { background: linear-gradient(160deg, var(--navy) 0%, var(--navy2) 100%); color: #fff; padding: 48px 0 56px; }
.hero h1 { color: #fff; font-size: 1.9rem; max-width: 820px; }
.hero p.lead { font-size: 1.08rem; color: #dbe5f1; max-width: 760px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 0; padding: 0; list-style: none; }
.hero .chips li { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 4px 12px; font-size: .88rem; color: #f1f5fa; }
@media (min-width: 760px) { .hero { padding: 80px 0 88px; } .hero h1 { font-size: 2.5rem; } }

/* ---------- sections ---------- */
section { padding: 52px 0; scroll-margin-top: 84px; }
section.alt { background: var(--bg2); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.two, .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.three { grid-template-columns: repeat(3, 1fr); } .grid.four { grid-template-columns: repeat(4, 1fr); } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card h3 { display: flex; gap: 10px; align-items: center; }
.card h3 .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); flex: none; }
.card p.small, .small { font-size: .9rem; color: var(--muted); }
.ticks { list-style: none; margin: 0; padding: 0; }
.ticks li { position: relative; padding-left: 24px; margin: 6px 0; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.more { font-weight: 700; display: inline-block; margin-top: 8px; }

/* ---------- full features page ---------- */
.feature-block { padding: 26px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.feature-block:last-child { border-bottom: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 10px; }
.toc a { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: .9rem; }
@media (min-width: 760px) { .feature-block .ticks { columns: 2; column-gap: 32px; } .feature-block .ticks li { break-inside: avoid; } }

/* ---------- gallery ---------- */
.gallery figure { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gallery .shot { position: relative; background: #e9edf2; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; }
.gallery video.shot { cursor: auto; }
.gallery .shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
.gallery video { width: 100%; aspect-ratio: 16 / 10; background: #0b1b30; }
.gallery .pic { position: relative; }
.sample { position: absolute; top: 10px; left: 10px; background: var(--gold); color: var(--navy); font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; pointer-events: none; }
.gallery figcaption { padding: 12px 16px 16px; }
.gallery figcaption strong { display: block; color: var(--navy); }
.gallery figcaption span { font-size: .9rem; color: var(--muted); }
dialog.zoom { border: 0; padding: 0; max-width: min(1200px, 96vw); max-height: 94vh; background: #0b1b30; border-radius: 10px; }
dialog.zoom::backdrop { background: rgba(5, 15, 30, .85); }
dialog.zoom img { max-height: 84vh; width: auto; margin: 0 auto; }
dialog.zoom p { color: #e8eef6; margin: 0; padding: 10px 14px; font-size: .92rem; display: flex; justify-content: space-between; gap: 10px; align-items: center; }
dialog.zoom button { background: var(--gold); color: var(--navy); border: 0; border-radius: 8px; padding: 6px 14px; font-weight: 700; font-family: inherit; cursor: pointer; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 14px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; position: relative; }
.steps li::before { content: counter(step); display: inline-flex; width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: var(--gold); font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- faq ---------- */
.faq details { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-weight: 700; color: var(--navy); list-style-position: inside; }
.faq details[open] summary { border-bottom: 1px solid var(--line); }
.faq details > div { padding: 12px 18px 16px; }
.faq details > div p:last-child { margin: 0; }

/* ---------- demo form ---------- */
.demo-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
@media (min-width: 760px) { .demo-box { padding: 28px; } }
.fields { display: grid; gap: 0 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .fields { grid-template-columns: 1fr 1fr; } .fields .full { grid-column: 1 / -1; } }
.field { margin-bottom: 14px; }
.field label, .field legend { display: block; font-weight: 700; font-size: .93rem; margin-bottom: 5px; color: var(--navy); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 12px; border: 1px solid #b9c3cf; border-radius: 9px; background: #fff; color: var(--ink); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy2); outline: 3px solid rgba(226, 179, 60, .55); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: var(--err); background: #fffafa; }
.field .err { display: block; color: var(--err); font-size: .88rem; margin-top: 4px; }
.field .err:empty { display: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400 !important; color: var(--ink) !important; }
.check input { width: 20px; height: 20px; margin-top: 3px; flex: none; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.status { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; }
.status:empty { display: none; }
.status.ok { background: var(--okbg); color: var(--ok); }
.status.err { background: var(--errbg); color: var(--err); }
.preview-note { background: var(--gold-soft); border: 1px dashed var(--gold); padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; }

/* ---------- contact ---------- */
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 700px) { .contact-list { grid-template-columns: repeat(2, 1fr); } }
.contact-list li { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.contact-list .k { display: block; font-size: .82rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.contact-list .v { font-weight: 700; color: var(--navy); word-break: break-word; }
.contact-list .v a { color: var(--navy); }

/* ---------- legal pages ---------- */
.legal { max-width: 780px; padding: 40px 16px 60px; }
.legal h2 { font-size: 1.2rem; margin-top: 1.6em; }
.legal ul { padding-left: 1.3em; }

/* ---------- footer ---------- */
.foot { background: var(--navy); color: #cdd8e5; padding: 32px 0; font-size: .92rem; }
.foot a { color: #fff; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.preview-bar { background: var(--gold); color: var(--navy); text-align: center; padding: 6px 12px; font-weight: 700; font-size: .9rem; }

/* owner's choice: long paragraphs justified on wide screens (phones and narrow boxes stay left-aligned) */
@media (min-width: 768px) {
  .legal p, .faq details > div p {
    text-align: justify; text-justify: inter-word; hyphens: auto; -webkit-hyphens: auto;
  }
}

/* v9.5.3 tag lines (Bhagavad Gita) */
.sa { font-family: "Nirmala UI", "Noto Sans Devanagari", Mangal, Verdana, sans-serif; font-weight: 700; }
/* v9.7 tag line under each name: Sakshar ERP (header), Sanketeek (footer) */
.brand .names { display: flex; flex-direction: column; line-height: 1.15; }
.brand .motto { display: block; font-size: .74rem; font-weight: 400; margin-top: 3px; white-space: nowrap; }
.brand .motto .sa { color: var(--gold); font-size: .8rem; }
.brand .motto .tr { color: #c9d6e6; }
.brand:has(> img:not(.mark-img)) { flex-direction: column; align-items: flex-start; gap: 2px; }
.foot .co { font-size: .95rem; }
.foot .motto { margin: 2px 0; }
.foot .sa { color: var(--gold); }
.foot .tr { opacity: .85; }
.foot .copy { font-size: .8rem; opacity: .75; }
/* v9.7 footer stays at the bottom of the screen; the page scrolls between the top bar and the footer */
.foot { position: sticky; bottom: 0; z-index: 19; padding: 10px 0; box-shadow: 0 -1px 0 rgba(255,255,255,.08), 0 -6px 18px rgba(0,0,0,.18); }
.foot .wrap { align-items: center; }
.foot .company-logo { height: 46px; }
@media (max-width: 759px) {
  .brand .motto .tr { display: none; }
  .foot { padding: 6px 0; font-size: .8rem; }
  .foot .wrap { gap: 4px 14px; }
  .foot .company-logo { height: 34px; }
  .foot .by { gap: 10px; }
  .foot .copy { display: none; }
  .foot .co { font-size: .82rem; }
  .foot nav { gap: 2px 14px; font-size: .78rem; }
}
