/* Homepage. Colours inherit site.css tokens. */
body.home-page { --wrap: 1280px; }
.home-page main h2 { font-size: clamp(2.6rem, 4vw, 3.9rem); line-height: 1; }

/* A row of kolam dots: the threshold drawn between sections */
.home-hero::after, .home-fares::before { content: ""; position: absolute; left: 0; right: 0; height: .5rem; background: radial-gradient(circle, var(--gold) 1.7px, transparent 2.1px) 50% 50% / 1.25rem .5rem repeat-x; }

/* Opening: ivory ground, the gopuram in its own gold frame */
.home-hero { position: relative; padding-block: clamp(3rem, 5vw, 4.75rem) clamp(3.5rem, 6vw, 5.5rem); }
.home-hero::after { bottom: 1.5rem; opacity: .7; }
.home-hero-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--col-gap); align-items: center; }
.home-hero-copy { min-width: 0; }
.home-hero-copy h1 { max-width: 12ch; color: var(--deep); font-size: clamp(3.2rem, 4.6vw, 4.75rem); font-weight: 600; line-height: .95; }
.home-hero-lede { max-width: 29rem; margin-top: 1.4rem; color: var(--fg-2); font-size: 1.1875rem; line-height: 1.6; }
.home-hero-actions { margin-top: 1.8rem; }
.home-hero-assurance { max-width: 29rem; margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-strong); color: var(--fg-2); font-size: .9375rem; }
.home-hero-photo { min-width: 0; padding: .55rem; border: 1px solid var(--gold); background: var(--surface); }
.home-hero-photo img { width: 100%; aspect-ratio: 1.08; object-fit: cover; object-position: 65% 35%; }
.home-hero-photo figcaption { padding: .65rem .25rem .1rem; color: var(--fg-3); font-size: .875rem; }

/* Fare finder: the temple-green band carries the picker and the kolam */
.home-fares { position: relative; padding-block: clamp(4.25rem, 7vw, 6rem); background: var(--temple); color: var(--ivory); scroll-margin-top: var(--header-h); }
.home-fares::before { top: 1.5rem; opacity: .8; }
.home-fares :focus-visible { outline-color: var(--brass); }
.home-fares-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--col-gap); align-items: center; }
.home-fares-copy { min-width: 0; }
.home-fares-copy h2 { color: var(--ivory); }
.home-fares-copy > p { margin-top: .75rem; color: var(--temple-ink); font-size: 1.0625rem; }
.picker { margin-top: 2rem; }
.picker-label { margin-top: 1.1rem; color: var(--temple-ink); font-size: .9375rem; font-weight: 650; }
.picker-label:first-child { margin-top: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .5rem; }
.chip { display: inline-flex; align-items: baseline; gap: .4rem; min-height: 2.75rem; padding: .6rem 1.05rem; border: 1px solid var(--temple-ink); border-radius: var(--r-sm); color: var(--ivory); font: 650 .9375rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease); }
.chip span { color: var(--temple-ink); font-weight: 500; }
.chip:hover { border-color: var(--brass); background: var(--temple-deep); }
.chip:active { transform: translateY(1px); }
.chip[aria-pressed="true"], .chip[aria-current="true"] { border-color: var(--ivory); background: var(--ivory); color: var(--temple-deep); }
.chip[aria-pressed="true"] span, .chip[aria-current="true"] span { color: var(--fg-3); }
.picker-detail { max-width: 34rem; margin-top: 1rem; color: var(--temple-ink); font-size: .9375rem; line-height: 1.6; }
.home-hero-kolam { justify-self: center; width: 100%; max-width: 30rem; }
.kolam { width: min(100%, 19rem); margin-inline: auto; }
.home-fares .kolam-grid circle { fill: var(--brass); opacity: .45; }
.home-fares .kolam-line { stroke: var(--ivory); }
.home-fares .kolam-stops circle { fill: var(--brass); }
.home-fares .kolam-labels text { fill: var(--ivory); }
.picker-result { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 1.75rem; margin-top: 1.75rem; padding-top: 1.25rem; border-top: 1px solid var(--brass); }
.picker-fare { display: grid; gap: .35rem; }
.picker-fare span { color: var(--temple-ink); font-size: .9375rem; }
.picker-fare strong { color: var(--brass); font: 600 clamp(3.75rem, 6.5vw, 5.75rem)/.9 var(--display); letter-spacing: -.02em; }
.picker-result .btn { margin-bottom: .35rem; }
.picker-call { margin-top: .75rem; color: var(--temple-ink); font-size: .9375rem; }
.picker-call a { color: var(--ivory); font-weight: 650; }
.kolam-note { margin-top: .75rem; color: var(--temple-ink); font-size: .875rem; }

/* Fleet: four cars in a ruled row on ivory */
.home-fleet { padding-block: clamp(4rem, 7vw, 6rem); }
.home-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem; margin-bottom: 2rem; }
.home-head p { max-width: 30rem; font-size: 1.0625rem; line-height: 1.7; }
.home-fleet-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 2rem; margin-top: 1.5rem; color: var(--fg-3); font-size: .9375rem; }

/* Tagline: the one scroll reveal, on night green */
.home-tagline { padding-block: clamp(4.5rem, 9vw, 8rem); background: var(--night); }
.tagline { max-width: 20ch; color: var(--ivory); font: 600 clamp(2.8rem, 5.6vw, 5.25rem)/1.02 var(--display); letter-spacing: -.02em; text-wrap: balance; }
.tagline.is-armed .tagline-word { color: var(--night-mute); transition: color .7s var(--ease); }
.tagline.is-armed .tagline-word.is-lit { color: var(--ivory); }

/* Promise, guides and questions */
.home-parents, .home-promise, .home-guides, .home-questions { padding-block: clamp(4rem, 7vw, 6rem); }
.home-parents { border-bottom: 1px solid var(--border-strong); }
.home-parents-list { padding: 0; list-style: none; border-top: 1px solid var(--gold); }
.home-parents-list a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: 1.1rem; border-bottom: 1px solid var(--border-strong); color: var(--deep); font: 600 1.6rem/1.15 var(--display); text-decoration: none; transition: color .25s var(--ease); }
.home-parents-list a:hover { color: var(--accent); }
.home-parents-fare { flex: none; color: var(--fg); font: 650 1.0625rem/1.2 var(--sans); white-space: nowrap; }
.home-parents-fare small { color: var(--fg-3); font-size: .875rem; font-weight: 500; }
.home-promise { background: var(--subtle); border-block: 1px solid var(--border); }
.home-questions { border-top: 1px solid var(--border-strong); }
.home-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--col-gap); align-items: start; }
.home-split-intro > p { max-width: 26rem; margin-top: 1rem; font-size: 1.0625rem; line-height: 1.75; }
.home-split-intro > .link-more { margin-top: 1rem; }
.home-steps { max-width: 27rem; margin-top: 1.5rem; padding: 0; list-style: none; counter-reset: step; }
.home-steps li { position: relative; padding: .85rem 0 .85rem 3.1rem; border-top: 1px solid var(--border-strong); counter-increment: step; font-size: 1.0625rem; line-height: 1.6; text-wrap: pretty; }
.home-steps li::before { content: counter(step); position: absolute; left: 0; top: .75rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border: 1px solid var(--gold); border-radius: 50%; color: var(--deep); font: 600 1.15rem/1 var(--display); }
.home-promise-list { padding: 0; list-style: none; border-top: 1px solid var(--gold); }
.home-promise-list li { padding-block: 1.4rem; border-bottom: 1px solid var(--border-strong); }
.home-promise-list h3 { color: var(--deep); font: 600 1.9rem/1.05 var(--display); }
.home-promise-list p { max-width: 40rem; margin-top: .5rem; font-size: 1.0625rem; line-height: 1.7; }
.home-promise-list a { color: var(--accent); text-decoration-color: var(--accent-line); }
.home-guide-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(1.5rem, 4vw, 3.5rem); border-top: 1px solid var(--gold); }
.home-guide-links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 4rem; padding-block: .75rem; border-bottom: 1px solid var(--border-strong); color: var(--deep); font: 600 1.6rem/1.15 var(--display); text-decoration: none; transition: color .25s var(--ease); }
.home-guide-links a:hover { color: var(--accent); }
.home-guide-links .ico { width: 1.1rem; height: 1.1rem; color: var(--gold-ink); transition: transform .3s var(--ease); }
.home-guide-links a:hover .ico { transform: translateX(3px); }
.home-questions .faq { border-top: 1px solid var(--gold); }
.home-questions summary { padding-block: 1.25rem; font-size: 1.0625rem; }
.home-questions .answer { font-size: 1rem; }

@media (max-width: 1024px) {
  .home-hero-copy h1 { font-size: clamp(3.2rem, 6vw, 4.5rem); }
}
@media (max-width: 860px) {
  .home-fares-layout, .home-split { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .home-hero-kolam { display: flex; flex-direction: column; max-width: none; }
  .home-hero-kolam .picker-result { order: -2; margin-top: 0; }
  .home-hero-kolam .picker-call { order: -1; }
  .kolam { margin-top: 1.75rem; }
}
@media (max-width: 760px) {
  .home-hero { padding-top: 2rem; }
  .home-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .home-hero-copy h1 { max-width: 12ch; font-size: clamp(3.2rem, 13vw, 4.6rem); }
  .home-hero-lede { font-size: 1.0625rem; }
  .home-hero-actions .btn { width: 100%; }
  .home-hero-photo img { aspect-ratio: 16 / 10; }
  .chip { padding-inline: .9rem; }
  .picker-result .btn { flex: 1 1 100%; }
  .home-page main h2 { font-size: clamp(2.4rem, 10vw, 3rem); }
  .home-head { margin-bottom: 1.25rem; }
  .home-guide-links { grid-template-columns: minmax(0, 1fr); }
  .home-guide-links a { min-height: 3.6rem; font-size: 1.45rem; }
  .home-parents-list a { font-size: 1.4rem; }
  .home-promise-list h3 { font-size: 1.65rem; }
}
@media (prefers-reduced-motion: reduce) {
  .kolam-line.is-drawing { animation: none; }
  .tagline.is-armed .tagline-word { color: var(--ivory); transition: none; }
  .chip, .home-guide-links a, .home-guide-links .ico, .home-parents-list a { transition: none; }
}
