/* Elixir Train and Logistics Services — elixirail.in
   Palette taken from the logo: locomotive navy, Indian Railways red, loco-stripe yellow. */
:root {
  --navy: #13286B;
  --navy-deep: #0C1A4A;
  --ink: #101C42;
  --red: #C8202F;
  --red-dark: #A3172A;
  --yellow: #F2B705;
  --ballast: #EEF1F6;
  --rail: #C9D1DE;
  --steel: #556075;
  --paper: #FFFFFF;

  --display: "Archivo", "Arial Narrow", Arial, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 104px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; color: var(--navy); font-family: var(--display); }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.9rem); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.01em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--yellow); color: var(--ink); padding: 10px 16px; z-index: 200; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; border-radius: 6px; border: 2px solid transparent;
  font: 700 1rem/1.1 var(--display); text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }
.btn-ghost-dark { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost-dark:hover { background: var(--navy); color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--rail); height: var(--header-h);
  backdrop-filter: saturate(1.2) blur(6px);
}
.site-header.scrolled { box-shadow: 0 6px 20px -14px rgba(16,28,66,.45); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.brand { display: block; }
.brand img { height: 92px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  padding: 8px 12px; font-weight: 600; font-size: .95rem; text-decoration: none; color: var(--ink);
  border-bottom: 3px solid transparent;
}
.site-nav a:not(.btn):hover, .site-nav a.active { color: var(--navy); border-bottom-color: var(--red); }
.nav-call { margin-left: 10px; padding: .7em 1.1em; font-size: .92rem; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(41,120,220,.35), transparent 60%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 70%);
  padding: clamp(48px, 7vw, 96px) 0 clamp(80px, 9vw, 120px);
}
.hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero h1 {
  color: #fff; font-size: clamp(2.1rem, 1.2rem + 2.9vw, 3.4rem); font-weight: 850;
  font-variation-settings: "wdth" 118; letter-spacing: -.015em; line-height: 1.04; margin-bottom: .45em;
  max-width: 17ch;
}
.hero-lede { font-family: var(--serif); font-size: 1.15rem; line-height: 1.65; color: #D8E0F2; max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; color: #B9C5E2; font-size: .95rem; }
.hero-facts li { position: relative; padding-left: 16px; }
.hero-facts li::before { content: ""; position: absolute; left: 0; top: .55em; width: 7px; height: 7px; background: var(--yellow); border-radius: 50%; }
.hero-facts strong { color: #fff; font-weight: 700; }

/* The departure board: the one loud element on the page */
.board {
  background: #071034; border-radius: 10px; padding: 18px 18px 14px;
  box-shadow: 0 0 0 6px #1C2E66, 0 30px 60px -20px rgba(0,0,0,.6);
  font-variation-settings: "wdth" 100;
  container-type: inline-size; --chars: 29;
}
.board-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 12px; border-bottom: 2px solid var(--yellow); margin-bottom: 10px; }
.board-title { font-weight: 800; font-size: 1.25rem; color: #fff; font-variation-settings: "wdth" 115; }
.board-from { color: var(--yellow); margin-left: .3em; }
.board-clock { font-weight: 700; color: var(--yellow); font-variant-numeric: tabular-nums; font-size: 1.15rem; letter-spacing: .04em; }
.board-cols, .board-row {
  display: grid; grid-template-columns: auto auto 1fr; gap: 0 10px;
  font-size: .8rem; font-size: min(1rem, calc((100cqw - 50px) / (var(--chars) * 1.1)));
}
.board-cols span { white-space: nowrap; overflow: hidden; }
.board-cols span:nth-child(1) { width: calc(15 * 1.08em); }
.board-cols span:nth-child(2) { width: calc(4 * 1.08em); }
.board-cols { padding: 0 4px 6px; color: #7F8DB8; font-weight: 600; }
.board-row { padding: 5px 4px; border-top: 1px solid #142257; }
.board-row .cell { display: flex; flex-wrap: nowrap; overflow: hidden; }
.board-row .ch {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1em; height: 1.55em; flex: 0 0 auto; margin-right: .08em;
  background: linear-gradient(#26366E 0 49%, #1A2858 51% 100%);
  border-radius: 2px; color: #FFD23F; font-weight: 700; font-size: 1em;
  position: relative;
}
.board-row .ch::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0,0,0,.65); }
.board-row .ch.sp { background: linear-gradient(#1A2858 0 49%, #121E48 51% 100%); }
.board-row .cell.mode .ch { color: #fff; }
.board-row .cell.dest .ch { color: #9FE2A6; }
.board-foot { margin-top: 10px; padding: 8px 4px 0; border-top: 1px solid #142257; color: #9AA7CF; font-size: .9rem; }

.track {
  position: absolute; left: 0; right: 0; bottom: 26px; height: 14px;
  background:
    linear-gradient(var(--rail), var(--rail)) 0 0 / 100% 3px no-repeat,
    linear-gradient(var(--rail), var(--rail)) 0 100% / 100% 3px no-repeat,
    repeating-linear-gradient(90deg, rgba(201,209,222,.45) 0 6px, transparent 6px 26px);
  opacity: .5;
}

/* Expertise band */
.expertise { background: var(--yellow); border-bottom: 4px solid var(--ink); }
.expertise-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: 30px; padding-bottom: 30px; }
.expertise h2 { color: var(--ink); font-size: clamp(1.4rem, 1rem + 1.4vw, 2.1rem); margin-bottom: .25em; max-width: 26ch; }
.expertise p { margin: 0; font-family: var(--serif); font-size: clamp(1.05rem, .95rem + .4vw, 1.25rem); color: #2A2410; }
.expertise .btn { flex: 0 0 auto; }
@media (max-width: 760px) { .expertise-inner { flex-direction: column; align-items: flex-start; } }

/* Sections */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head p { font-family: var(--serif); font-size: 1.12rem; color: var(--steel); }

/* Services as a timetable */
.timetable { border-top: 3px solid var(--navy); }
.tt-row {
  display: grid; grid-template-columns: 96px 1fr 260px; gap: 28px; align-items: start;
  padding: 26px 0; border-bottom: 1px solid var(--rail);
}
.tt-row:target { background: linear-gradient(90deg, rgba(242,183,5,.12), transparent); }
.tt-mode {
  justify-self: start; font-weight: 700; font-size: .85rem; padding: 4px 10px; border-radius: 4px; color: #fff; margin-top: 4px;
}
.tt-rail { background: var(--navy); }
.tt-road { background: var(--steel); }
.tt-air { background: var(--red); }
.tt-main h3 { font-size: clamp(1.25rem, 1.05rem + .6vw, 1.55rem); font-weight: 800; font-variation-settings: "wdth" 108; margin-bottom: .35em; }
.tt-main p { font-family: var(--serif); color: #2E3A5C; margin: 0; max-width: 62ch; }
.tt-fit { margin: 0; font-size: .95rem; color: var(--steel); border-left: 3px solid var(--yellow); padding-left: 14px; }
.tt-fit span { display: block; font-weight: 700; color: var(--ink); font-size: .85rem; }

/* Network: Indian Railways-style yellow station name boards */
.stations { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px 16px; }
.stations li {
  position: relative; background: var(--yellow); color: #111; text-align: center;
  font-weight: 800; font-size: 1.12rem; font-variation-settings: "wdth" 110; letter-spacing: .01em;
  padding: 14px 10px; border: 3px solid #111; border-radius: 3px; margin-bottom: 14px;
}
.stations li::before, .stations li::after { content: ""; position: absolute; bottom: -17px; width: 4px; height: 14px; background: var(--steel); }
.stations li::before { left: 22%; }
.stations li::after { right: 22%; }
.stations li:first-child { background: var(--navy); color: #fff; border-color: var(--navy); }

/* VP vs SLR */
.compare { background: var(--ballast); }
.compare-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.compare-copy p { font-family: var(--serif); font-size: 1.1rem; color: #2E3A5C; margin-bottom: 1.5em; }
.table-wrap { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 0 var(--rail); }
.compare-table th, .compare-table td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--ballast); vertical-align: top; }
.compare-table thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: 1.02rem; }
.compare-table thead th:nth-child(3) { background: var(--red); }
.compare-table tbody th { font-weight: 600; color: var(--steel); font-size: .92rem; width: 30%; }
.compare-table td { font-family: var(--serif); }
.table-note { font-size: .88rem; color: var(--steel); margin-top: 10px; }

/* Process: a real sequence, drawn as stations on a line */
.stops { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: stop; position: relative; }
.stops::before { content: ""; position: absolute; left: 16px; right: 16px; top: 16px; height: 4px; background: var(--navy); border-radius: 2px; }
.stops li { position: relative; counter-increment: stop; padding-top: 54px; }
.stops li::before {
  content: counter(stop); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 50%;
  background: #fff; border: 4px solid var(--navy); color: var(--navy); font-weight: 800;
  display: grid; place-items: center; font-size: .95rem;
}
.stops li:last-child::before { background: var(--red); border-color: var(--red); color: #fff; }
.stops h3 { margin-bottom: .4em; }
.stops p { font-family: var(--serif); color: #2E3A5C; font-size: 1rem; margin: 0; }

/* Story */
.story { background: #F8F9FC; border-top: 1px solid var(--rail); }
.story-grid { display: grid; grid-template-columns: 360px 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.story-line { position: sticky; top: calc(var(--header-h) + 28px); }
.story-line h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.milestones { list-style: none; padding: 0; margin: 28px 0 0; position: relative; }
.milestones::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 3px; background: repeating-linear-gradient(var(--navy) 0 10px, transparent 10px 16px); }
.milestones li { position: relative; padding: 0 0 22px 34px; }
.milestones li::before { content: ""; position: absolute; left: 0; top: 5px; width: 17px; height: 17px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.milestones li:last-child::before { background: var(--red); border-color: var(--red); }
.ms-when { display: block; font-weight: 800; color: var(--navy); }
.ms-what { display: block; color: var(--steel); font-size: .95rem; line-height: 1.45; }
.story-text { font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; color: #24304F; max-width: 68ch; }
.story-text .lead { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.75rem); line-height: 1.4; color: var(--navy); font-weight: 600; }
.story-text h3 { font-family: var(--display); font-size: 1.45rem; margin-top: 1.6em; }
.pull { margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 5px solid var(--red); }
.pull p { font-family: var(--display); font-size: clamp(1.3rem, 1.05rem + .9vw, 1.7rem); font-weight: 750; line-height: 1.3; color: var(--navy); font-variation-settings: "wdth" 110; margin: 0; }

/* Values */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 3px solid var(--navy); }
.value { padding: 28px 28px 8px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--rail); }
.value h3 { font-size: 1.3rem; }
.value p { font-family: var(--serif); color: #2E3A5C; }
.motto { margin-top: 40px; font-weight: 800; font-size: clamp(1.15rem, 1rem + .6vw, 1.45rem); color: var(--red); font-variation-settings: "wdth" 112; }

/* FAQ */
.faq { background: var(--ballast); }
.faq-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: clamp(28px, 5vw, 64px); }
.faq-item { border-bottom: 1px solid var(--rail); }
.faq-item:first-child { border-top: 1px solid var(--rail); }
.faq-item h3 { margin: 0; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 44px 20px 0; position: relative; font: 700 1.1rem/1.35 var(--display); color: var(--navy);
}
.faq-q::after { content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px; border-right: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq-q[aria-expanded="true"]::after { transform: translateY(-30%) rotate(-135deg); }
.faq-a p { font-family: var(--serif); color: #2E3A5C; padding-bottom: 8px; max-width: 64ch; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: start; }
.contact-info > p { font-family: var(--serif); font-size: 1.1rem; color: var(--steel); }
.contact-list { margin: 26px 0; }
.contact-list div { padding: 12px 0; border-bottom: 1px solid var(--rail); }
.contact-list dt { font-size: .85rem; font-weight: 600; color: var(--steel); }
.contact-list dd { margin: 2px 0 0; font-size: 1.12rem; font-weight: 700; overflow-wrap: anywhere; }
.contact-list address { font-style: normal; font-weight: 500; line-height: 1.5; }
.map { border-radius: 8px; overflow: hidden; border: 1px solid var(--rail); aspect-ratio: 16 / 10; background: var(--ballast); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.enquiry { background: var(--navy); color: #fff; padding: clamp(24px, 4vw, 40px); border-radius: 10px; border-top: 6px solid var(--yellow); }
.enquiry h3 { color: #fff; font-size: 1.5rem; margin-bottom: 1em; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 14px; }
.field label { font-size: .9rem; font-weight: 600; color: #C9D3EC; }
.field input, .field select, .field textarea {
  font: 500 1rem/1.4 var(--display); color: var(--ink); background: #fff;
  border: 2px solid transparent; border-radius: 6px; padding: 11px 12px; width: 100%;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); }
.field .invalid { border-color: #FF8A8A; }
.form-error { background: rgba(255,138,138,.15); border-left: 4px solid #FF8A8A; padding: 10px 12px; font-size: .95rem; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.enquiry .btn-ghost-dark { border-color: rgba(255,255,255,.6); color: #fff; }
.enquiry .btn-ghost-dark:hover { background: #fff; color: var(--navy); }
.form-hint { font-size: .85rem; color: #AEB9D9; margin: 14px 0 0; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #B9C5E2; padding: 64px 0 24px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo { background: #fff; border-radius: 8px; padding: 6px; margin-bottom: 14px; width: 120px; }
.footer-name { color: #fff; font-weight: 800; font-size: 1.1rem; margin-bottom: .3em; }
.footer-h { color: #fff; font-size: 1rem; font-weight: 700; margin-bottom: 14px; font-variation-settings: "wdth" 100; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; overflow-wrap: anywhere; }
.site-footer a { color: #DCE3F5; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); text-decoration: underline; }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid #22336E; margin-top: 44px; padding-top: 20px; font-size: .85rem; }
.footer-base p { margin: 0; }

.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.45);
}
.wa-float:hover { color: #fff; background: #1EBE5A; }

/* Responsive */
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rail);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 18px; gap: 0; display: none;
    box-shadow: 0 16px 30px -18px rgba(16,28,66,.5);
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 13px 4px; border-bottom: 1px solid var(--ballast); }
  .nav-call { margin: 14px 0 0; }
}
@media (max-width: 960px) {
  .hero-grid, .compare-grid, .contact-grid, .faq-grid { grid-template-columns: 1fr; }
  .story-grid { grid-template-columns: 1fr; }
  .story-line { position: static; }
  .tt-row { grid-template-columns: 70px 1fr; }
  .tt-fit { grid-column: 2; }
  .stops { grid-template-columns: 1fr 1fr; row-gap: 36px; }
  .stops::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --header-h: 80px; }
  body { font-size: 16px; }
  .brand img { height: 70px; }
  .board { padding: 14px 10px 10px; }
  .board { --chars: 19; }
  .stations { grid-template-columns: repeat(2, 1fr); gap: 14px 12px; }
  .stations li { font-size: 1rem; padding: 12px 6px; }
  .board-cols, .board-row { grid-template-columns: max-content 1fr; }
  .board-cols span:nth-child(3), .board-row .cell.dest { display: none; }
  .tt-row { grid-template-columns: 1fr; gap: 10px; }
  .tt-fit { grid-column: auto; }
  .stops { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .value, .value + .value { padding: 22px 0 6px; border-left: 0; }
  .value + .value { border-top: 1px solid var(--rail); }
  .field-row { flex-direction: column; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { padding: 12px 12px; font-size: .95rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .wa-float, .enquiry, .map { display: none; }
  .hero { background: none; color: var(--ink); }
  .hero h1 { color: var(--navy); }
}
