/* Isha site: tokens, type, nav and footer shared by every page.
   Dark only, like the app's dark theme (lib/design/tokens/isha_colors.dart). */

@font-face {
  font-family: "Yatra One";
  src: url("/assets/fonts/YatraOne-Regular.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-raised: #0c0c0d;
  --surface: #121214;
  --surface-2: #1c1c1f;
  --text: #f4f4f6;
  --muted: #a0a0a8;
  --faint: rgba(244, 244, 246, 0.46);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --orange: #ff5d3a;           /* the logo's dot */
  --orange-warm: #ff8a3d;
  --orange-glow: rgba(255, 93, 58, 0.55);
  --title: "Yatra One", "Poppins", system-ui, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Noto Sans",
    "Noto Sans Devanagari", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --page: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius-lg: 28px;
  --radius-md: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--orange); color: #050505; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }
.title { font-family: var(--title); font-weight: 400; letter-spacing: 0; }
.eyebrow {
  display: inline-block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--orange);
  margin: 0 0 14px;
}
.muted { color: var(--muted); }
.lead strong, .muted strong { color: var(--text); font-weight: 600; }

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg);
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 8px; }

/* Glass bar, as Apple's local nav: sits over the page, blurs what's under it. */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 5, 5, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.nav .brand img { height: 30px; width: auto; }
.nav ul { display: flex; gap: 26px; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav ul a {
  font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.nav ul a:hover { color: var(--text); }
.nav ul a { position: relative; padding: 6px 0; }
.nav ul a.active { color: var(--orange); }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  font: 600 14px/1 var(--body); text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background 0.2s, box-shadow 0.3s;
}
.pill:hover { transform: translateY(-1px); }
.nav .brand + .pill { margin-left: auto; }
.pill-solid { background: var(--text); color: var(--bg); }
.pill-orange { background: var(--orange); color: #140500; box-shadow: 0 10px 40px -10px var(--orange-glow); }
.pill-orange:hover { box-shadow: 0 14px 50px -8px var(--orange-glow); }
.pill-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.pill-lg { padding: 16px 26px; font-size: 16px; }

.footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 56px;
  color: var(--faint);
  font-size: 13px;
}
.footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.footer img { height: 26px; width: auto; opacity: 0.9; }
.footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.footer a { color: var(--faint); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer .made { flex-basis: 100%; }

@media (max-width: 760px) {
  .nav ul { display: none; }
  .nav .pill { margin-left: auto; }
  .footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
