/* ============================================================
   Shri Vinayaka Tech & Trade — site stylesheet
   Palette and spacing tokens live at the top; change them here.
   ============================================================ */

:root {
  --navy-900: #0b1f38;
  --navy-800: #122c4d;
  --navy-700: #1b3c66;
  --navy-050: #eef3f9;
  --amber-600: #b26a05;
  --amber-500: #d98613;
  --amber-100: #fdf1dd;
  --ink: #16202c;
  --ink-soft: #4b5a6b;
  --line: #dde5ee;
  --bg: #ffffff;
  --bg-alt: #f6f8fb;
  --ok: #1c7a4a;
  --err: #b3261e;

  --wrap: 1140px;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(11, 31, 56, .06), 0 2px 8px rgba(11, 31, 56, .05);
  --shadow-md: 0 6px 24px rgba(11, 31, 56, .09);
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
}

/* ---------- reset ---------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
}

img { max-width: 100%; display: block; }

a { color: var(--navy-700); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.25; color: var(--navy-900); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -.015em; }
h3 { font-size: 1.14rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--amber-500); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(var(--wrap), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 0; background: var(--navy-900);
  color: #fff; padding: .6rem 1rem; z-index: 100;
}
.skip-link:focus { left: .5rem; top: .5rem; }

/* Touch targets. WCAG 2.2 SC 2.5.8 asks for at least 24x24 CSS px. Links that
   sit on their own line in a list get their own minimum here rather than
   relying on the spacing exception. Links inline in a sentence are exempt from
   the rule and are deliberately left alone — padding them would break the
   line spacing of the paragraph around them.

   Scoped to anchors whose whole content is a single element or text node. The
   GSTIN item in the topbar is a span mixing a text label with a strong tag, and
   making that a flex container drops the space between the two. */
.foot-list a,
.foot-address a,
.info-list a,
a.topbar-item {
  display: inline-flex; align-items: center; min-height: 24px;
}

/* Headings that exist to give a section a place in the document outline
   without adding a visible title to the design. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- config placeholders / errors ---------- */

.cfg-placeholder {
  background: #fff4d6;
  border-bottom: 1px dashed var(--amber-600);
  color: var(--amber-600);
  padding: 0 .18em;
  border-radius: 3px;
}

.cfg-error {
  background: #fdecea; color: var(--err); padding: .9rem 1.2rem;
  border-bottom: 2px solid var(--err); font-size: .95rem;
}
.cfg-error code { background: rgba(0,0,0,.06); padding: .1em .35em; border-radius: 4px; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.4rem; border-radius: 8px; font-weight: 600; font-size: .97rem;
  border: 1.5px solid transparent; cursor: pointer; transition: .18s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; }
.btn-primary { background: var(--amber-500); color: #21160a; border-color: var(--amber-500); }
.btn-primary:hover { background: var(--amber-600); border-color: var(--amber-600); color: #fff; }
.btn-dark { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.btn-dark:hover { background: var(--navy-900); }
.btn-outline { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-outline:hover { border-color: var(--navy-800); background: var(--navy-050); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); }

/* A call to action that is deliberately not available yet — every demo button
   while demoAvailable is false in company.json. These render as <span>, not
   <a>, so there is no link to click, hover or tab into. The grey says so to a
   sighted visitor; aria-disabled and the note beside it say so to everyone
   else. */
.btn.is-disabled {
  background: var(--navy-050); color: var(--ink-soft); border-color: var(--line);
  cursor: not-allowed;
}
.btn.is-disabled:hover { transform: none; }
/* On the dark bands the light grey reads as an active button, so invert it. */
.cta-band .btn.is-disabled,
.hero .btn.is-disabled {
  background: rgba(255,255,255,.10); color: rgba(255,255,255,.55);
  border-color: rgba(255,255,255,.22);
}
/* The one-line explanation that sits under a disabled call to action. */
.cta-note { font-size: .85rem; color: var(--ink-soft); margin: .55rem 0 0; }
.cta-band .cta-note { color: #9fbcd9; margin-top: .7rem; }

.link-arrow { font-weight: 600; font-size: .93rem; color: var(--amber-600); }
.link-arrow::after { content: " →"; }

/* ---------- header ---------- */

.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: var(--shadow-sm); }

.topbar { background: var(--navy-900); color: #cfe0f2; font-size: .82rem; }
.topbar-in { display: flex; gap: .8rem; align-items: center; justify-content: flex-end; padding: .42rem 0; flex-wrap: wrap; }
.topbar a { color: #cfe0f2; }
.topbar strong { color: #fff; font-weight: 600; }
.topbar-sep { opacity: .35; }

.nav-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 0; }

.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
/* The mark is now the emblem artwork (assets/img/logo-mark.webp), generated
   by tools/make-logo-assets.py. It carries its own gold ring and cream disc,
   so nothing is painted behind it — width/height are set on the <img> too, so
   the header does not reflow while it loads. */
.brand-mark {
  width: 44px; height: 44px; flex: 0 0 44px; border-radius: 50%;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { color: var(--navy-900); font-size: 1.06rem; }
.brand-text small { color: var(--ink-soft); font-size: .76rem; }

.nav-links { display: flex; align-items: center; gap: .3rem; }
.nav-links a {
  padding: .5rem .8rem; border-radius: 7px; font-weight: 600; font-size: .95rem; color: var(--ink);
}
.nav-links a:hover { background: var(--navy-050); text-decoration: none; }
.nav-links a.active { color: var(--navy-800); background: var(--navy-050); }
.nav-cta { margin-left: .5rem; }
.nav-cta:hover { background: var(--amber-600); }

.nav-toggle {
  display: none; width: 44px; height: 40px; border: 1px solid var(--line);
  background: #fff; border-radius: 8px; cursor: pointer; padding: 10px 9px;
  flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--navy-800); border-radius: 2px; transition: .2s; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- hero ---------- */

.hero {
  background:
    radial-gradient(1100px 420px at 12% -10%, rgba(217,134,19,.22), transparent 60%),
    linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #eaf2fb; padding: clamp(3rem, 7vw, 5.5rem) 0;
}
.hero h1 { color: #fff; max-width: 20ch; }
.hero p.lede { font-size: 1.09rem; color: #c9dcf0; max-width: 58ch; }
.hero-eyebrow {
  display: inline-block; font-size: .78rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber-500); font-weight: 700; margin-bottom: .9rem;
  border: 1px solid rgba(217,134,19,.4); border-radius: 999px; padding: .28rem .85rem;
}
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1.6rem; }

.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 2.5rem; align-items: center; }

.hero-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius); padding: 1.4rem 1.5rem; backdrop-filter: blur(4px);
}
.hero-card h2 { color: #fff; font-size: 1rem; letter-spacing: .04em; text-transform: uppercase; }
.hero-card ul { margin: 0; padding-left: 1.1rem; color: #cfe0f2; font-size: .95rem; }
.hero-card li { margin-bottom: .45rem; }

/* ---------- page banner (inner pages) ---------- */

.page-head {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff; padding: clamp(2.2rem, 5vw, 3.4rem) 0;
}
.page-head h1 { color: #fff; margin-bottom: .35rem; }
.page-head p { color: #c9dcf0; margin: 0; max-width: 62ch; }
.crumbs { font-size: .84rem; color: #9fbcd9; margin-bottom: .7rem; }
.crumbs a { color: #9fbcd9; }
.crumbs span { opacity: .6; padding: 0 .35rem; }

/* ---------- sections ---------- */

section { padding: clamp(2.6rem, 6vw, 4.2rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 64ch; margin-bottom: 2rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  font-size: .76rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--amber-600); font-weight: 700; margin-bottom: .5rem; display: block;
}
.lede { font-size: 1.05rem; color: var(--ink-soft); }

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 1.2rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.split-wide { grid-template-columns: 1.25fr .75fr; }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm); transition: .2s ease;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: #c9d6e6; }
/* A card title is an h2 where the document outline needs one and an h3 where it
   sits under a section heading. Both are sized as a card title, not as a
   page-level heading. */
.card h2, .card h3 { margin-bottom: .4rem; }
.card h2 { font-size: 1.14rem; letter-spacing: normal; }
.card p { color: var(--ink-soft); font-size: .96rem; margin-bottom: .8rem; }
.card p:last-child { margin-bottom: 0; }

.card-ico {
  width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center;
  background: var(--amber-100); color: var(--amber-600); margin-bottom: 1rem;
}
.card-ico .ico { width: 24px; height: 24px; }

.ticks { list-style: none; margin: 0; padding: 0; font-size: .93rem; color: var(--ink-soft); }
.ticks li { position: relative; padding-left: 1.4rem; margin-bottom: .38rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .52em; width: 7px; height: 12px;
  border: solid var(--amber-600); border-width: 0 2px 2px 0; transform: rotate(43deg);
}

/* ---------- product cards ---------- */

.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.product-cat {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 700; margin: 0 0 .25rem;
}
.product-card h3 { margin-bottom: .35rem; }
.product-tagline { color: var(--navy-800) !important; font-weight: 600; font-size: 1rem !important; }

.badge {
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px; white-space: nowrap; border: 1px solid transparent;
}
.badge-live { background: #e4f4ea; color: #14683f; border-color: #b9e2ca; }
.badge-beta { background: var(--amber-100); color: var(--amber-600); border-color: #f0d7ac; }
.badge-dev  { background: var(--navy-050); color: var(--navy-700); border-color: #cddbea; }

/* ---------- stats ---------- */

.stats-band { background: var(--navy-800); color: #fff; padding: 2.2rem 0; }
.stats-band .grid { gap: 1rem; }
.stat { text-align: center; padding: .6rem; }
.stat strong { display: block; font-size: clamp(1.6rem, 3.5vw, 2.2rem); color: var(--amber-500); line-height: 1.1; }
.stat span { font-size: .88rem; color: #c9dcf0; }

/* ---------- tables ---------- */

.detail-table { width: 100%; border-collapse: collapse; background: #fff; font-size: .95rem; }
.detail-table th, .detail-table td {
  text-align: left; padding: .78rem 1rem; border: 1px solid var(--line); vertical-align: top;
}
.detail-table th { background: var(--navy-050); width: 38%; color: var(--navy-900); font-weight: 600; }
.table-scroll { overflow-x: auto; border-radius: var(--radius); }

/* ---------- FAQ ---------- */

.faq-list { max-width: 820px; }
.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: .7rem; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; background: none; border: 0; cursor: pointer; text-align: left;
  font: inherit; font-weight: 600; color: var(--navy-900);
}
.faq-q:hover { background: var(--bg-alt); }
.faq-chev {
  width: 10px; height: 10px; flex: 0 0 10px; border: solid var(--ink-soft);
  border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; margin-top: -4px;
}
.faq-q[aria-expanded="true"] .faq-chev { transform: rotate(-135deg); margin-top: 4px; }
.faq-a { padding: 0 1.15rem 1.1rem; color: var(--ink-soft); font-size: .96rem; }
.faq-a p { margin: 0; }

/* ---------- contact ---------- */

.contact-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.2rem; align-items: start; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1rem; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: .35rem; color: var(--navy-900); }
.field .req { color: var(--err); }
.field input, .field select, .field textarea {
  width: 100%; padding: .68rem .8rem; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: .96rem; background: #fff; color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-700); outline-offset: 1px; }
/* Honeypot wrapper — see the comment on the field in contact.html. Moved out
   of view rather than hidden, so a bot that ignores CSS still fills it in and
   gives itself away. Never put a real field in here. */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.field-hint { font-size: .82rem; color: var(--ink-soft); margin-top: .3rem; }

.form-status { margin-top: .9rem; font-size: .93rem; font-weight: 600; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--err); }
/* Failure messages carry a mail and a phone link, so those need to read as
   links against the error colour rather than inherit it. */
.form-status.err a { color: inherit; text-decoration: underline; }

.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list strong { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); }
.info-list a, .info-list span.val { color: var(--navy-800); font-weight: 600; }

#map-holder { margin-top: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-alt); }
#map-holder iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-empty { padding: 2rem 1.2rem; text-align: center; color: var(--ink-soft); font-size: .92rem; }
.map-empty code { background: #e7edf5; padding: .1em .35em; border-radius: 4px; }

/* ---------- legal / prose pages ---------- */

.prose { max-width: 78ch; }
.prose h2 { margin-top: 2.2rem; font-size: 1.35rem; }
.prose h3 { margin-top: 1.5rem; }
.prose ul, .prose ol { padding-left: 1.3rem; color: var(--ink-soft); }
.prose li { margin-bottom: .45rem; }
.prose .updated { font-size: .88rem; color: var(--ink-soft); border-left: 3px solid var(--amber-500); padding-left: .9rem; }

/* ---------- CTA band ---------- */

.cta-band {
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  color: #fff; border-radius: var(--radius); padding: 2.2rem 2.4rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; margin-bottom: .3rem; font-size: 1.5rem; }
.cta-band p { color: #c9dcf0; margin: 0; }
.cta-band .actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- footer ---------- */

.site-footer { background: var(--navy-900); color: #b9cde3; margin-top: 0; font-size: .93rem; }
.foot-grid {
  display: grid; grid-template-columns: 1.6fr .8fr .8fr 1.2fr; gap: 2rem;
  padding: 3rem 0 2rem;
}
.site-footer h2 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a { color: #b9cde3; }
.site-footer a:hover { color: #fff; }
.foot-brand .brand-text strong { color: #fff; }
.foot-brand .brand-text small { color: #8fadcb; }
.foot-about { margin-top: 1rem; color: #9fbcd9; font-size: .9rem; }
.foot-reg { font-size: .85rem; color: #9fbcd9; }
.foot-reg strong { color: #fff; font-weight: 600; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list li { margin-bottom: .55rem; }
.foot-address { font-style: normal; line-height: 1.7; }
.foot-hours { font-size: .85rem; color: #8fadcb; margin-top: .7rem; }
.foot-bottom {
  border-top: 1px solid rgba(255,255,255,.12); padding: 1.1rem 0; display: flex;
  justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .84rem; color: #8fadcb;
}

/* ---------- responsive ---------- */

@media (max-width: 980px) {
  .hero-grid, .split, .split-wide, .contact-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: #fff; flex-direction: column; align-items: stretch;
    padding: .6rem 1.25rem 1.1rem; box-shadow: var(--shadow-md); gap: .1rem;
  }
  .nav-links.open { display: flex; }
  .nav-in { position: relative; }
  .nav-cta { margin: .5rem 0 0; }
  .topbar-in { justify-content: center; font-size: .78rem; }
  .topbar-sep { display: none; }
  .topbar-item { flex: 1 1 100%; text-align: center; }
}

@media (max-width: 620px) {
  .grid-2, .grid-3, .grid-4, .form-row, .foot-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 1.6rem; }
  .detail-table th { width: 44%; }
}

@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none; }
  body { font-size: 12pt; }
}
