/* =========================================================
   MALLESWARAM LOCATION PAGE  (prefix: mal-)
   Load AFTER tokens.css + services.css (FAQ / CTA / eyebrow / buttons are reused).
   Deliberately different from the Mysore page (loc-):
   light hero + route strip, split-heading sections, level cards,
   blue skill-ladder band, licence list rows, arched ladies photo,
   included / not-included fees, horizontal RTO stepper, street chips,
   and a mobile call bar.
   ========================================================= */

.mal-hero, .mal-sec, .mal-ladder, .mal-lic, .mal-ladies, .mal-fees,
.mal-rto, .mal-streets, .mal-callbar{ font-family: var(--svc-font-body); }

:root{ --mal-gutter: clamp(20px, 10vw, 200px); --mal-ink: #0d0f1a; --mal-warm: #eef2ff; }

.mal-wrap{ max-width: 1240px; margin: 0 auto; }
.mal-sec{ padding: 88px var(--mal-gutter); }
.svc-faq, .svc-cta{ padding-left: var(--mal-gutter); padding-right: var(--mal-gutter); }
.svc-faq-inner{ max-width: 1240px; }
.svc-faq-list{ max-width: 900px; margin-left: auto; margin-right: auto; }

.mal-title{
  font-family: var(--svc-font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  color: var(--mal-ink);
  margin: 0 0 18px;
}
.mal-prose p{ font-size: 15.5px; line-height: 1.75; color: var(--svc-muted); margin: 0 0 16px; font-weight: 600; }
.mal-prose p:last-child{ margin-bottom: 0; }
.mal-prose strong{ color: var(--mal-ink); }

/* ---------- 1. HERO (light, grid-paper) ---------- */
.mal-hero{
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(47,111,237,.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(47,111,237,.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(180deg, #f3f6ff 0%, #ffffff 100%);
  padding: 72px var(--mal-gutter) 0;
}
.mal-hero-inner{
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.mal-pill{
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; border-radius: 6px;
  background: var(--mal-warm);
  border: 1px dashed #b9c6ee;
  color: #173a8a;
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  margin-bottom: 18px;
}
.mal-pill svg{ width: 14px; height: 14px; }
.mal-hero h1{
  font-family: var(--svc-font-display);
  font-weight: 800;
  font-size: clamp(28px, 3.6vw, 40px); line-height: 1.18;
  color: var(--mal-ink);
  margin: 0 0 20px;
}
.mal-hero h1 span{
  color: var(--svc-blue);
  background: linear-gradient(transparent 70%, rgba(47,111,237,.16) 70%);
}
.mal-hero-lead{
  font-size: 15.5px; line-height: 1.75; font-weight: 600;
  color: var(--svc-muted); max-width: 610px; margin: 0 0 26px;
}
.mal-hero-actions{ display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.mal-btn-line{
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px;
  border: 1.5px solid var(--mal-ink); color: var(--mal-ink);
  font-weight: 700; font-size: 14.5px;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.mal-btn-line:hover{ background: var(--mal-ink); color: #fff; transform: translateY(-2px); }
.mal-hero .lead-form-wrap{ position: relative; z-index: 2; }

/* route strip: lane -> main road */
.mal-route{
  max-width: 1240px; margin: 56px auto 0;
  padding: 26px 0 34px;
  border-top: 1px solid var(--svc-border);
}
.mal-route-label{
  font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--svc-muted); margin: 0 0 18px;
}
.mal-route-line{ display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.mal-route-line::before{
  content: ""; position: absolute; left: 12px; right: 12px; top: 11px;
  border-top: 2px dashed #b9c6ee;
}
.mal-stop{ position: relative; padding-top: 34px; padding-right: 18px; }
.mal-stop::before{
  content: ""; position: absolute; left: 4px; top: 3px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; border: 3px solid var(--svc-blue);
}
.mal-stop:last-child::before{ background: var(--svc-blue); }
.mal-stop b{ display: block; font-family: var(--svc-font-display); font-size: 14.5px; color: var(--mal-ink); margin-bottom: 3px; }
.mal-stop span{ font-size: 13px; line-height: 1.5; color: var(--svc-muted); font-weight: 600; }

/* ---------- split-heading sections ---------- */
.mal-split{
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 72px; align-items: start;
}
.mal-split-head{ position: sticky; top: 28px; }
.mal-num{
  display: block;
  font-family: var(--svc-font-display); font-weight: 800;
  font-size: 84px; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px #c9d4f5;
  margin-bottom: 14px;
}
.mal-alt{ background: var(--svc-bg); }

.mal-points{ display: grid; gap: 14px; margin: 26px 0 0; padding: 0; }
.mal-points li{
  list-style: none; display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start;
  background: #fff; border: 1px solid var(--svc-border); border-radius: 16px; padding: 18px 20px;
}
.mal-points svg{ width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: var(--svc-tint); color: var(--svc-blue); }
.mal-points h3{ font-family: var(--svc-font-display); font-size: 15.5px; font-weight: 700; color: var(--mal-ink); margin: 2px 0 5px; }
.mal-points p{ font-size: 15px; line-height: 1.65; color: var(--svc-muted); margin: 0; font-weight: 600; }

/* ---------- 2. CAR: level cards ---------- */
.mal-levels{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 34px 0 30px; }
.mal-level{
  background: #fff; border: 1px solid var(--svc-border); border-radius: 20px;
  padding: 24px 22px; position: relative; overflow: hidden;
}
.mal-level::after{
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: linear-gradient(90deg, var(--svc-blue), var(--svc-blue-light));
  transform-origin: left; transform: scaleX(var(--fill, .33));
}
.mal-level small{ font-size: 11.5px; font-weight: 700; letter-spacing: .1em; color: var(--svc-blue); text-transform: uppercase; }
.mal-level h3{ font-family: var(--svc-font-display); font-size: 17px; font-weight: 700; color: var(--mal-ink); margin: 8px 0 8px; }
.mal-level p{ font-size: 15px; line-height: 1.65; color: var(--svc-muted); margin: 0 0 14px; font-weight: 600; }
.mal-level ul{ margin: 0; padding: 0; }
.mal-level li{ list-style: none; font-size: 12.8px; color: var(--mal-ink); font-weight: 600; padding: 3px 0 3px 18px; position: relative; }
.mal-level li::before{ content: "✓"; position: absolute; left: 0; color: var(--svc-blue); font-weight: 800; }
.mal-note{
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--mal-warm); border-left: 4px solid #3b6fed; border-radius: 0 14px 14px 0;
  padding: 16px 20px; margin: 0 0 28px;
  font-size: 14px; line-height: 1.65; color: #173a8a; font-weight: 600;
}
.mal-note b{ color: #12142a; }
.mal-after{ display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 0 0 28px; }
.mal-after .mal-note{ flex: 1; margin: 0; }
.mal-after .svc-btn-primary{ flex: none; }

/* ---------- 3. BIKE: blue skill-ladder band ---------- */
.mal-ladder{ background: var(--svc-blue); color: #fff; position: relative; overflow: hidden; }
.mal-ladder::before{
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  border-radius: 50%; border: 60px solid rgba(255,255,255,.07);
}
.mal-ladder .mal-wrap{ position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.mal-ladder .svc-eyebrow{ color: #dbe6ff; }
.mal-ladder .mal-title{ color: #fff; }
.mal-ladder .mal-prose p{ color: #e3ebff; }
.mal-ladder .mal-prose strong{ color: #fff; }
.mal-btn-white{
  display: inline-flex; padding: 14px 26px; border-radius: 999px; margin-top: 12px;
  background: #fff; color: var(--svc-blue); font-weight: 700; font-size: 14.5px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mal-btn-white:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(0,0,0,.4); }
.mal-skills{ display: grid; gap: 14px; margin: 0; padding: 0; }
.mal-skills li{ list-style: none; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 16px; padding: 16px 20px; }
.mal-skills div{ display: flex; justify-content: space-between; font-size: 14px; font-weight: 700; margin-bottom: 9px; }
.mal-skills em{ font-style: normal; font-size: 12px; font-weight: 600; color: #cddaff; }
.mal-bar{ height: 7px; border-radius: 99px; background: rgba(255,255,255,.2); overflow: hidden; }
.mal-bar i{ display: block; height: 100%; width: var(--w, 50%); border-radius: 99px; background: #fff; }

/* ---------- 4. PROFESSIONAL: licence list rows ---------- */
.mal-lic-head{ display: block; max-width: 820px; margin-bottom: 44px; }
.mal-lic-head .mal-prose{ margin-top: 4px; }
.mal-lic-list{ margin: 0; padding: 0; border-top: 2px solid var(--mal-ink); }
.mal-lic-row{
  list-style: none;
  display: grid; grid-template-columns: 110px minmax(0, 1.1fr) minmax(0, 1.4fr) 170px;
  gap: 28px; align-items: center;
  padding: 26px 8px; border-bottom: 1px solid var(--svc-border);
  transition: background .2s ease, padding .2s ease;
}
.mal-lic-row:hover{ background: var(--svc-tint); }
.mal-lic-code{ font-family: var(--svc-font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; color: var(--svc-blue); }
.mal-lic-row h3{ font-family: var(--svc-font-display); font-size: 17px; font-weight: 700; color: var(--mal-ink); margin: 0; }
.mal-lic-row p{ font-size: 15px; line-height: 1.65; color: var(--svc-muted); margin: 0; font-weight: 600; }
.mal-lic-tag{ justify-self: end; font-size: 12px; font-weight: 700; color: var(--svc-navy); background: var(--svc-tint); padding: 6px 12px; border-radius: 999px; white-space: nowrap; }

/* ---------- 5. LADIES ---------- */
.mal-ladies{ background: linear-gradient(120deg, #eef2ff 0%, #f8f9ff 100%); }
.mal-ladies-grid{ display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: center; }
.mal-arch{
  border-radius: 999px 999px 24px 24px; overflow: hidden; max-width: 380px;
  box-shadow: 0 30px 60px -28px rgba(20,22,44,.45);
  border: 8px solid #fff;
}
.mal-arch img{ width: 100%; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.mal-ladies .svc-eyebrow{ color: #2f6fed; }
.mal-promise{ margin: 24px 0 28px; padding: 0; display: grid; gap: 12px; }
.mal-promise li{
  list-style: none; background: rgba(255,255,255,.8); border-radius: 14px;
  padding: 14px 18px 14px 50px; position: relative;
  font-size: 14px; line-height: 1.55; font-weight: 600; color: var(--mal-ink);
}
.mal-promise li::before{
  content: "✓"; position: absolute; left: 16px; top: 13px;
  width: 22px; height: 22px; border-radius: 50%; background: #2f6fed; color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 800;
}
.mal-btn-rose{
  display: inline-flex; padding: 14px 26px; border-radius: 999px;
  background: #2f6fed; color: #fff; font-weight: 700; font-size: 14.5px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.mal-btn-rose:hover{ transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(47,111,237,.6); }

/* ---------- 6. FEES: included / depends-on ---------- */
.mal-fees-grid{ display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; margin: 34px 0 26px; }
.mal-fee-box{ border-radius: 22px; padding: 30px 30px 28px; border: 1px solid var(--svc-border); background: #fff; }
.mal-fee-box.is-dark{ background: var(--svc-dark); border-color: var(--svc-dark); }
.mal-fee-box h3{ font-family: var(--svc-font-display); font-size: 18px; font-weight: 700; color: var(--mal-ink); margin: 0 0 16px; }
.mal-fee-box.is-dark h3{ color: #fff; }
.mal-fee-box ul{ margin: 0; padding: 0; }
.mal-fee-box li{
  list-style: none; position: relative; padding: 11px 0 11px 30px;
  font-size: 14px; line-height: 1.55; font-weight: 600; color: var(--svc-muted);
  border-top: 1px solid var(--svc-border);
}
.mal-fee-box.is-dark li{ color: var(--svc-muted-light); border-top-color: var(--svc-rule); }
.mal-fee-box li b{ color: var(--mal-ink); }
.mal-fee-box.is-dark li b{ color: #fff; }
.mal-fee-box li::before{ content: "✓"; position: absolute; left: 0; top: 11px; color: var(--svc-blue); font-weight: 800; }
.mal-fee-box.is-dark li::before{ color: var(--svc-blue-light); }
.mal-fee-box li.is-var::before{ content: "↕"; }
.mal-quote-bar{
  display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between;
  background: var(--svc-tint); border-radius: 18px; padding: 22px 28px;
}
.mal-quote-bar p{ margin: 0; font-size: 15px; line-height: 1.6; color: var(--svc-navy); font-weight: 600; max-width: 720px; }

/* ---------- 7. RTO: horizontal stepper ---------- */
.mal-rto-head{ max-width: 760px; margin-bottom: 44px; }
.mal-steps{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin: 0 0 36px; padding: 0; counter-reset: step; }
.mal-step{ list-style: none; position: relative; padding: 0 22px 0 0; counter-increment: step; }
.mal-step::before{
  content: counter(step);
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--svc-blue); color: #fff;
  font-family: var(--svc-font-display); font-weight: 800; font-size: 16px;
  margin-bottom: 18px; position: relative; z-index: 1;
}
.mal-step::after{ content: ""; position: absolute; left: 56px; right: 10px; top: 22px; border-top: 2px dashed #b9c6ee; }
.mal-step:last-child::after{ display: none; }
.mal-step h3{ font-family: var(--svc-font-display); font-size: 16.5px; font-weight: 700; color: var(--mal-ink); margin: 0 0 8px; }
.mal-step p{ font-size: 14.5px; line-height: 1.7; color: var(--svc-muted); margin: 0; font-weight: 600; }
.mal-docs{
  background: #fff; border: 1px solid var(--svc-border); border-radius: 20px; padding: 28px 30px 30px;
}
.mal-docs h3{ font-family: var(--svc-font-display); font-size: 17px; font-weight: 700; color: var(--mal-ink); margin: 0 0 18px; }
.mal-docs ul{ display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; }
.mal-docs li{
  list-style: none; display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; border-radius: 12px; background: var(--svc-tint);
  color: var(--svc-navy); font-size: 14px; font-weight: 600; line-height: 1.35;
}
.mal-docs li::before{
  content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--svc-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.mal-rto-foot{ display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-top: 26px; }
.mal-disclaimer{ flex: 1; max-width: 780px; margin: 0; font-size: 14px; line-height: 1.65; color: var(--svc-muted); font-weight: 600; }
.mal-rto-foot .svc-btn-primary{ flex: none; }

/* ---------- 8. STREETS ---------- */
.mal-streets{ background: var(--mal-ink); color: #fff; }
.mal-streets .svc-eyebrow{ color: var(--svc-blue-light); }
.mal-streets .mal-title{ color: #fff; }
.mal-streets-grid{ display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.mal-streets .mal-prose p{ color: var(--svc-muted-light); }
.mal-street-list{ display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; }
.mal-street-list li{
  list-style: none; padding: 11px 18px; border-radius: 10px;
  background: #1b1e38; border: 1px solid var(--svc-rule);
  font-size: 14px; font-weight: 600; color: #e3e7ff;
}
.mal-street-list li:nth-child(3n+1){ border-left: 3px solid var(--svc-blue-light); }

/* ---------- mobile call bar ---------- */
.mal-callbar{ display: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1200px){
  /* 5 tiles: 3 on the first row, the last 2 stretch across the second so no row ends short */
  .mal-docs ul{ grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mal-docs li{ grid-column: span 2; }
  .mal-docs li:nth-child(n+4){ grid-column: span 3; }
}
@media (max-width: 1100px){
  .mal-lic-row{ grid-template-columns: 90px 1fr; row-gap: 8px; }
  .mal-lic-row p, .mal-lic-tag{ grid-column: 2; justify-self: start; }
  .mal-steps{ grid-template-columns: 1fr 1fr; row-gap: 34px; }
  .mal-step:nth-child(2)::after{ display: none; }
}
@media (max-width: 900px){
  .mal-sec{ padding: 60px var(--mal-gutter); }
  .mal-hero{ padding-top: 48px; }
  .mal-hero-inner, .mal-split, .mal-ladder .mal-wrap, .mal-lic-head, .mal-ladies-grid,
  .mal-fees-grid, .mal-streets-grid{ grid-template-columns: 1fr; gap: 32px; }
  .mal-split-head{ position: static; }
  .mal-num{ font-size: 60px; }
  .mal-route-line{ grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .mal-route-line::before{ display: none; }
  .mal-levels{ grid-template-columns: 1fr; }
  .mal-rto-foot{ flex-direction: column; align-items: flex-start; gap: 20px; }
  .mal-after{ flex-direction: column; align-items: flex-start; gap: 20px; }
  .mal-arch{ margin: 0 auto; }
}
@media (max-width: 640px){
  .mal-docs ul{ grid-template-columns: 1fr; }
  .mal-docs li, .mal-docs li:nth-child(n+4){ grid-column: auto; }
  .mal-steps{ grid-template-columns: 1fr; }
  .mal-step::after{ display: none; }
  .mal-lic-row{ grid-template-columns: 1fr; }
  .mal-lic-row p, .mal-lic-tag{ grid-column: 1; }
  .mal-callbar{
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--svc-border);
  }
  .mal-callbar a{ text-align: center; padding: 13px 10px; border-radius: 12px; font-weight: 700; font-size: 14px; }
  .mal-callbar a:first-child{ background: var(--svc-tint); color: var(--svc-navy); }
  .mal-callbar a:last-child{ background: #25a244; color: #fff; }
  body{ padding-bottom: 68px; }
}

/* keep eyebrow labels identical to the service pages (paragraph rules above would override them) */
.mal-prose p.svc-eyebrow{ font-family: var(--svc-font-body); font-weight: 700; font-size: 13px; line-height: normal; color: var(--svc-blue); margin: 0 0 14px; }
.mal-prose p.svc-eyebrow span{ color: var(--svc-muted-light); }
.mal-prose p.svc-eyebrow.svc-eyebrow-light{ color: var(--svc-blue-light); }

/* tablets / phones: keep a comfortable but smaller side gutter */
@media (max-width: 900px){ :root{ --mal-gutter: clamp(18px, 5vw, 40px); } }

/* =========================================================
   CENTRED SECTION HEADS (standalone heading blocks only)
   ========================================================= */
.mal-lic-head,
.mal-rto-head,
#car-classes .mal-wrap > .mal-prose,
#fees .mal-wrap > .mal-prose{ text-align: center; margin-left: auto; margin-right: auto; }

/* column CTAs sit on the right edge of their text column */
.mal-ladder .mal-prose > a,
.mal-ladies .mal-prose > a{ display: flex; width: fit-content; margin-left: auto; }
