/* IndiaRoad Map: shared design system for every page.
   Tokens, base type, header, footer, the one button style, and layout utilities.
   Page-only styles live in their own file (for example css/home.css). */

:root {
  /* colour */
  --night: #050A16;   /* page background */
  --deep: #0A1428;    /* raised bands: header, footer, ticker */
  --panel: #0F1C34;   /* cards and tiles */
  --line: rgba(148, 187, 255, .15);
  --line-hi: rgba(148, 187, 255, .32);
  --blue: #175CD3;    /* app primary */
  --blue-hi: #2E73EA;
  --sky: #94BBFF;     /* app primary, dark mode */
  --amber: #FFB547;   /* warnings, focus, the one hot accent */
  --red: #F04438;     /* pothole */
  --text: #EAF0FB;
  --muted: #9DAECB;

  /* type */
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  --fs-h1: clamp(2.4rem, 6.2vw, 5rem);
  --fs-h2: clamp(1.85rem, 4.4vw, 3rem);
  --fs-h3: clamp(1.2rem, 2vw, 1.4rem);

  /* shape and layout */
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;
  --gutter: 16px;
  --max: 1180px;
  --section: 72px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 28px; --section: 104px; } }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0; overflow-x: clip;
  background: var(--night); color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--sky); text-underline-offset: 3px; }
a:hover { color: #C9DBFF; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -.025em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -.04em; line-height: 1; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; z-index: 99; left: 12px; top: -60px; padding: 8px 14px; border-radius: 8px; background: var(--amber); color: #1A1200; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- layout utilities ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section-head { max-width: 40rem; margin-bottom: 36px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lede { margin-top: 12px; color: var(--muted); font-size: 1.06rem; }
.muted { color: var(--muted); }
.prose { max-width: 44rem; }
.prose h2 { margin: 48px 0 14px; font-size: clamp(1.5rem, 3vw, 2rem); }
.prose h3 { margin: 32px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; color: #C9D5EA; }
.prose li { margin-bottom: 6px; }

/* ---------- the one button: shimmer fill inside a moving beam border ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; padding: 2px; border-radius: 999px;
  background: var(--line-hi); text-decoration: none; white-space: nowrap;
  box-shadow: 0 12px 34px -10px rgba(46, 115, 234, .85);
  transition: transform .25s var(--ease);
}
.btn::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 420px; height: 420px; margin: -210px 0 0 -210px;
  background: conic-gradient(from 0deg, transparent 0 62%, var(--amber) 75%, #fff 80%, var(--sky) 88%, transparent 100%);
  animation: btn-spin 3.4s linear infinite;
}
.btn-in {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  background: linear-gradient(180deg, var(--blue-hi), var(--blue));
  color: #fff; font: 600 1.02rem/1.2 var(--body);
}
.btn-in::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent);
  transform: translateX(0) skewX(-20deg);
  animation: btn-sheen 3.8s ease-in-out infinite;
}
.btn:hover { transform: translateY(-1px); }
.btn:hover .btn-in { background: linear-gradient(180deg, #3B7DF0, #1E65DC); }
.btn svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
.btn--sm { box-shadow: none; }
.btn--sm .btn-in { padding: 8px 14px; font-size: .88rem; gap: 7px; }
.btn--sm svg { width: 15px; height: 15px; }
@keyframes btn-spin { to { transform: rotate(1turn); } }
@keyframes btn-sheen { 0%, 55% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(560%) skewX(-20deg); } }

.rating { color: var(--muted); font-size: .95rem; }
.star { color: var(--amber); }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 40;
  background: rgba(5, 10, 22, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 10px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; color: var(--text); text-decoration: none; font: 700 1.06rem/1 var(--display); letter-spacing: -.01em; }
.brand img { border-radius: 8px; }
.brand:hover { color: #fff; }
.nav-desk { display: none; gap: 26px; margin-left: auto; }
.nav-desk a, .nav-menu a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav-desk a:hover, .nav-desk a[aria-current="page"] { color: var(--text); }
.site-head .btn { margin-left: auto; }
.nav-menu { position: relative; }
.nav-menu summary { list-style: none; cursor: pointer; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-content: center; gap: 5px; }
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); }
.nav-menu nav { position: absolute; right: 0; top: 50px; min-width: 220px; display: grid; padding: 8px; background: var(--deep); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, .5); }
.nav-menu nav a { padding: 10px 12px; border-radius: 8px; }
.nav-menu nav a:hover { background: var(--panel); color: var(--text); }
@media (max-width: 479px) { .site-head .btn-label-long { display: none; } }
@media (min-width: 960px) {
  .nav-desk { display: flex; }
  .site-head .btn { margin-left: 12px; }
  .nav-menu { display: none; }
}

/* ---------- footer ---------- */
.site-foot { border-top: 1px solid var(--line); background: var(--deep); padding: 52px 0 28px; color: var(--muted); }
.foot-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 10px; align-content: start; }
.site-foot nav { display: grid; gap: 4px; align-content: start; }
.site-foot h2 { font: 600 .95rem var(--body); color: var(--text); letter-spacing: 0; margin-bottom: 6px; }
.site-foot nav a { padding: 4px 0; color: var(--muted); text-decoration: none; }
.site-foot nav a:hover { color: var(--text); text-decoration: underline; }
.foot-base { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .88rem; }
@media (min-width: 640px) {
  .foot-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .foot-brand { grid-column: auto; }
}

/* ---------- reduced motion: stop shared loops ---------- */
@media (prefers-reduced-motion: reduce) {
  .btn::before, .btn-in::after { animation: none; }
  .btn::before { transform: rotate(200deg); }
  .btn-in::after { display: none; }
}
