/* Yala Yatra. Mobile first: base rules are for phones, media queries widen the layout. */

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --forest: #103B2D;
  --deep: #0B2A20;
  --ink: #0E1F18;
  --leaf: #17573F;
  --accent: #F2A200;
  --tint: #F1F5F0;
  --line: #D5DED7;
  --muted: #47554D;
  --on-dark: #E3EDE7;
  --display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 16px/1.55 var(--body);
  color: var(--ink);
  background: #fff;
}
h1, h2, h3, p, ol, ul, dl, dd, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--leaf); }
a:hover { color: var(--deep); }
[hidden] { display: none !important; }
/* One page source serves two audiences: "/" (US dollars, most passports) and "/india/" (Indian passports, rupees). */
html[data-audience="in"] [data-aud="intl"], html[data-audience="intl"] [data-aud="in"] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.on-dark :focus-visible { outline-color: #fff; }
section[id], form[id] { scroll-margin-top: 16px; }

.skip { position: absolute; left: -9999px; top: 0; background: #fff; color: var(--ink); padding: 12px 16px; z-index: 50; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.section { padding: 48px 0; }
.tint { background: var(--tint); }
.dark { background: var(--forest); color: #fff; }

.display { font-family: var(--display); letter-spacing: -0.01em; }
h2.display { font-size: clamp(28px, 7vw, 42px); line-height: 1.1; font-weight: 700; }
.lead { font-size: 18px; color: var(--muted); margin-top: 10px; max-width: 46em; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--leaf); }
.muted { color: var(--muted); }
.head { margin-bottom: 28px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 48px; padding: 8px 24px; border-radius: 999px; border: 2px solid transparent;
  font: 700 17px/1.2 var(--body); text-decoration: none; cursor: pointer;
}
.btn-accent, .btn-accent:hover { background: var(--accent); color: var(--ink); }
.btn-ghost, .btn-ghost:hover { border-color: #fff; color: #fff; background: transparent; }
.btn-outline, .btn-outline:hover { border-color: var(--forest); color: var(--forest); background: #fff; }
.btn-sm { min-height: 44px; padding: 6px 18px; font-size: 15px; }
.btn-block { display: flex; width: 100%; }
.text-link { display: inline-block; font-weight: 600; padding: 10px 0; }

/* Setup notice: only shows while site.config.js has no WhatsApp number */
.setup { background: #FFE9A8; color: var(--ink); font-size: 14px; padding: 10px 20px; text-align: center; }

/* Suggestion to switch between the rupee page and the dollar page */
.suggest { background: var(--tint); color: var(--ink); font-size: 15px; padding: 8px 56px 8px 20px; position: relative; min-height: 44px; display: flex; align-items: center; }
.suggest a { font-weight: 700; }
.suggest button { position: absolute; right: 4px; top: 0; width: 44px; height: 44px; border: 0; background: transparent; font-size: 24px; line-height: 1; color: var(--ink); cursor: pointer; }

/* Header */
.top { background: var(--forest); color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { font: 700 24px/1 var(--display); letter-spacing: -0.01em; color: #fff; text-decoration: none; padding: 10px 0; }
.brand:hover { color: #fff; }
.nav { display: none; }
.nav a { color: var(--on-dark); text-decoration: none; padding: 12px 0; }
.nav a:hover { color: #fff; text-decoration: underline; }

/* Hero */
.hero { background: var(--forest); color: #fff; padding: 20px 0 40px; }
.hero-grid { display: grid; gap: 28px; }
.hero-copy { display: grid; gap: 16px; }
.hero .eyebrow { color: var(--accent); }
.hero h1 { font: 700 clamp(34px, 9.5vw, 62px)/1.05 var(--display); letter-spacing: -0.02em; }
.hero .sub { font-size: 18px; line-height: 1.5; color: var(--on-dark); max-width: 34em; }
.hero .from { font-size: 15px; color: #C9D8CF; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-row .btn { flex: 1 1 auto; padding-left: 18px; padding-right: 18px; }

/* Calculator */
.calc { background: #fff; color: var(--ink); border-radius: 20px; padding: 20px; display: grid; gap: 18px; min-width: 0; }
.calc h2 { font: 700 22px/1.2 var(--display); }
.label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; }
.pills input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pills span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 999px;
  border: 1.5px solid var(--forest); font-size: 15px; font-weight: 600; background: #fff; color: var(--ink);
}
.pills input:checked + span { background: var(--forest); color: #fff; }
.pills input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 2px; }
.note { font-size: 14px; color: var(--muted); margin-top: 8px; }
.fields { display: flex; flex-wrap: wrap; gap: 16px 24px; }
.stepper { display: flex; align-items: center; gap: 10px; }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--forest); background: #fff; color: var(--forest);
  font: 400 24px/1 var(--body); cursor: pointer; padding: 0;
}
.stepper button:disabled { opacity: 0.35; cursor: default; }
.stepper output { min-width: 26px; text-align: center; font-size: 22px; font-weight: 700; }
.date input {
  min-height: 44px; padding: 8px 12px; border: 1.5px solid var(--forest); border-radius: 12px;
  font: 400 16px/1.2 var(--body); color: var(--ink); background: #fff; max-width: 100%;
}
.result { background: var(--tint); border-radius: 14px; padding: 16px; display: grid; gap: 12px; }
.total { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.total strong { font-size: clamp(36px, 11vw, 44px); font-weight: 800; line-height: 1; letter-spacing: -0.02em; }
.total span { font-size: 15px; color: var(--muted); }
.lines { display: grid; gap: 6px; font-size: 15px; }
.lines div { display: flex; justify-content: space-between; gap: 16px; }
.lines dd { font-weight: 600; white-space: nowrap; }
.charge { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.charge strong { color: var(--ink); white-space: nowrap; }

/* Photos (switched off until real photos are added) */
.photos { padding: 32px 0 0; }
.photo-grid { display: grid; gap: 12px; }
.photo-grid img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }

/* Grids */
.grid { display: grid; gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: 16px; padding: 20px; display: grid; gap: 8px; align-content: start; }
.tile svg { width: 30px; height: 30px; color: var(--leaf); }
.tile h3, .point h3, .faq h3, .steps h3 { font-size: 18px; line-height: 1.25; }
.tile p, .point p, .faq p, .steps p { color: var(--muted); }
.point, .faq > div { display: grid; gap: 6px; align-content: start; }
.gap-lg { gap: 24px; }
.mt { margin-top: 20px; }
.book-grid { gap: 28px; }

/* Safari cards */
.card { background: #fff; border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.card h3 { font: 700 22px/1.2 var(--display); }
.card p { color: var(--muted); }
.rows { margin-top: auto; }
.rows div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.rows dd { font-weight: 700; white-space: nowrap; }
.card.dark { background: var(--forest); justify-content: center; }
.card.dark p { color: var(--on-dark); }
.card.dark .btn { align-self: flex-start; }

/* Two feature panels */
.panel { background: #fff; border-radius: 20px; padding: 24px; display: grid; gap: 12px; align-content: start; }
.panel h2 { font: 700 26px/1.15 var(--display); }
.panel .price { font-weight: 700; }

/* Steps */
.steps { list-style: none; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 6px; align-content: start; }
.steps li::before { content: counter(step); font: 700 38px/1 var(--display); color: var(--leaf); }

/* Agents band and booking */
.band { display: grid; gap: 20px; }
.band h2 { font: 700 28px/1.15 var(--display); }
.band p { color: var(--on-dark); font-size: 17px; margin-top: 8px; }
.contact { display: grid; gap: 14px; font-size: 17px; }
.contact dt { font-weight: 700; }
/* Padding makes the links 44 px tall to tap; the negative margin keeps the rows where they were. */
.contact dd a { display: inline-block; font-weight: 600; padding: 10px 0; margin: -10px 0; }

/* Footer */
/* On phones the footer leaves room for the bottom bar, so the bar never covers the last lines. */
.foot { background: var(--deep); color: #C9D8CF; font-size: 14px; padding: 28px 0 calc(100px + env(safe-area-inset-bottom)); }
.foot .wrap { display: grid; gap: 10px; }
.foot .brand { font-size: 20px; padding: 0; }

/* Bottom bar on phones */
.sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line); transition: transform 0.2s ease;
}
.sticky .btn { flex: 1 1 0; padding-left: 10px; padding-right: 10px; }
.sticky.is-hidden { transform: translateY(110%); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sticky { transition: none; }
}

/* Large phones and small tablets */
@media (min-width: 600px) {
  .grid.two-up, .grid.four-up, .grid.three-up, .steps.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .calc { padding: 26px; }
  .cta-row .btn { flex: 0 0 auto; padding-left: 24px; padding-right: 24px; }
}

/* Tablets and up: the bottom bar goes away */
@media (min-width: 760px) {
  body { font-size: 17px; }
  .foot { padding-bottom: 28px; }
  .wrap { padding: 0 24px; }
  .section { padding: 72px 0; }
  .head { margin-bottom: 36px; }
  .sticky { display: none; }
  .band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 40px; }
  .panel { padding: 34px; }
  .grid.duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .panel h2 { font-size: 30px; }
  .hero .sub { font-size: 20px; }
}

/* Desktop */
@media (min-width: 960px) {
  .nav { display: flex; align-items: center; gap: 28px; font-size: 16px; }
  .hero { padding: 48px 0 76px; }
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 48px; }
  .hero-copy { gap: 22px; }
  .grid.three-up { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .grid.four-up, .steps.grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid.two-up { gap: 24px; }
  .book-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; }
}
