/* NKS Fin Services — shared site styles.
   Layout: a calm counter-desk feel — navy ink on cool paper, marigold for stamps and status, box-grid motifs from the PAN form. */
:root {
  --paper: #f3f5f8; --card: #ffffff; --ink: #15233a; --muted: #5a6577; --line: #d6dce5;
  --navy: #1f3d70; --navy-ink: #ffffff; --marigold: #c97a12; --marigold-soft: #fbf0df;
  --ok: #1f8a4c; --ok-soft: #e6f3eb; --err: #b42318; --box: #fbfcfe;
  --font-body: "Hind Siliguri", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --paper: #0e1420; --card: #161f2e; --ink: #e6ebf3; --muted: #9ba7b9; --line: #2b374a; --navy: #8db2f0; --navy-ink: #0e1420; --marigold: #f0a640; --marigold-soft: #2c2214; --ok: #5cc48a; --ok-soft: #15291f; --err: #ff8a80; --box: #111a27; color-scheme: dark; }
}
:root[data-theme="dark"] { --paper: #0e1420; --card: #161f2e; --ink: #e6ebf3; --muted: #9ba7b9; --line: #2b374a; --navy: #8db2f0; --navy-ink: #0e1420; --marigold: #f0a640; --marigold-soft: #2c2214; --ok: #5cc48a; --ok-soft: #15291f; --err: #ff8a80; --box: #111a27; color-scheme: dark; }

* { box-sizing: border-box; }
html { scroll-padding-top: 72px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
a { color: var(--navy); }
h1, h2, h3 { margin: 0; line-height: 1.2; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: 1080px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Header */
.bar { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--paper) 93%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 10px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--ink); text-decoration: none; font-size: 1.05rem; }
.mark { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: var(--navy-ink); display: grid; place-items: center; font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.02em; }
.nav { display: flex; gap: 18px; align-items: center; font-weight: 500; font-size: 0.98rem; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--navy); }
@media (max-width: 820px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; border-radius: 10px; padding: 11px 20px; border: 1.5px solid var(--navy); background: var(--navy); color: var(--navy-ink); text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.wa { background: #1f8a4c; border-color: #1f8a4c; color: #fff; }
.btn.sm { padding: 7px 14px; font-size: 0.92rem; }
.nav .btn, .nav .btn:hover { color: #fff; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Hero with the four service doors */
.hero { padding-block: 40px 28px; display: flex; flex-direction: column; gap: 24px; }
.eyebrow { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.05em; color: var(--marigold); font-weight: 600; text-transform: uppercase; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 3rem); max-width: 18em; }
.hero .lead { font-size: 1.1rem; color: var(--muted); max-width: 40em; }
.doors { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .doors { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .doors { grid-template-columns: 1fr; } }
.door { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 18px; min-height: 196px; background: var(--card); border: 1.5px solid var(--line); border-radius: 16px; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.door:hover { border-color: var(--navy); box-shadow: 0 10px 28px rgba(20, 40, 80, 0.12); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .door, .door:hover { transition: none; transform: none; } }
.door.live { border-color: var(--navy); }
.door .icon { width: 46px; height: 46px; border-radius: 12px; background: var(--marigold-soft); color: var(--marigold); display: grid; place-items: center; }
.door.live .icon { background: color-mix(in srgb, var(--navy) 12%, var(--card)); color: var(--navy); }
.door .icon svg { width: 26px; height: 26px; }
.door h2 { font-size: 1.3rem; }
.door p { color: var(--muted); font-size: 0.95rem; }
.door .go { margin-top: auto; font-weight: 600; color: var(--navy); }
.tag { align-self: flex-start; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.tag.on { background: var(--ok-soft); color: var(--ok); }
.tag.soon { background: var(--marigold-soft); color: var(--marigold); }
.door .tag { position: absolute; top: 18px; right: 18px; }

/* Sections */
section.band { padding-block: 36px; }
section.band > .wrap > h2 { font-size: clamp(1.45rem, 3.4vw, 1.95rem); }
section.band > .wrap > .sub { color: var(--muted); margin-top: 8px; max-width: 44em; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-top: 22px; counter-reset: s; }
.steps div { border-top: 3px solid var(--navy); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.steps div::before { counter-increment: s; content: counter(s, decimal-leading-zero); font-family: var(--font-mono); color: var(--marigold); font-weight: 600; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin-top: 22px; }
.why div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

/* Authorisations register */
.register { margin-top: 22px; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
.register table { width: 100%; border-collapse: collapse; min-width: 680px; font-size: 0.95rem; }
.register th, .register td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.register th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: color-mix(in srgb, var(--navy) 5%, var(--card)); }
.register tr:last-child td { border-bottom: 0; }
.register .code { font-family: var(--font-mono); font-weight: 600; color: var(--navy); }
.register .pending { color: var(--muted); font-style: italic; }

/* Fee ticket */
.ticket { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 10px; max-width: 420px; }
.ticket .row { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px dashed var(--line); padding-bottom: 8px; font-variant-numeric: tabular-nums; }
.ticket .row:last-of-type { border-bottom: 0; }
.ticket b { font-family: var(--font-mono); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; align-items: start; margin-top: 22px; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* FAQ */
.faq { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 8px; color: var(--muted); }

/* Enquiry form */
.form { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.form .grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 0.92rem; min-width: 0; }
.form input, .form select, .form textarea { font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink); background: var(--box); border: 1px solid var(--line); border-radius: 8px; padding: 9px 11px; width: 100%; min-width: 0; }
.form textarea { min-height: 84px; resize: vertical; }
.form .hp { position: absolute; left: -9999px; }
.form-msg { font-size: 0.92rem; }
.form-msg.ok { color: var(--ok); } .form-msg.bad { color: var(--err); }
.contact-lines { display: flex; flex-direction: column; gap: 6px; }

/* Page head for inner pages */
.pagehead { padding-block: 32px 8px; display: flex; flex-direction: column; gap: 10px; }
.pagehead h1 { font-size: clamp(1.8rem, 4.5vw, 2.5rem); }
.crumbs { font-size: 0.9rem; }
.crumbs a { text-decoration: none; font-weight: 600; }
.prose { max-width: 46em; display: flex; flex-direction: column; gap: 12px; padding-bottom: 40px; }
.prose h2 { font-size: 1.25rem; margin-top: 14px; }
.prose ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; }
.note { border-left: 3px solid var(--marigold); background: var(--marigold-soft); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: 0.95rem; }

footer.site { border-top: 1px solid var(--line); padding-block: 26px 90px; font-size: 0.88rem; color: var(--muted); }
footer.site .wrap { display: flex; flex-direction: column; gap: 10px; }
footer.site .links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer.site .links a { color: var(--ink); text-decoration: none; }
footer.site .links a:hover { text-decoration: underline; }
.float-wa { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 9; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }

/* Brand logos */
.logo { gap: 0; }
.logo-img { display: block; height: 40px; width: auto; }
@media (min-width: 720px) { .logo-img { height: 52px; } }
.foot-brand img { display: block; width: 270px; max-width: 100%; height: auto; margin-bottom: 4px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sec-head .seal { flex: none; width: 92px; height: auto; }
@media (min-width: 720px) { .sec-head .seal { width: 128px; } }
/* The logos are drawn for light backgrounds, so in dark mode they sit on a white plate */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .logo-img, :root:not([data-theme="light"]) .foot-brand img { background: #fff; border-radius: 8px; padding: 4px 8px; } }
:root[data-theme="dark"] .logo-img, :root[data-theme="dark"] .foot-brand img { background: #fff; border-radius: 8px; padding: 4px 8px; }

/* Track PAN header link: keep menu items on one line on phones */
.nav a { white-space: nowrap; }
@media (max-width: 820px) { .nav { gap: 12px; font-size: 0.92rem; } }
