/* =========================================================
   Maxi Cab Perth – landing page styles (mcp-landing.css)
   Loaded only on /maxi-cab-perth/ page.
   Client reference design — adapted for WordPress.
   ========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* ---------- 1. Tokens & reset ---------- */
:root {
  --navy: #0a2a5e;
  --navy-2: #0d3b82;
  --blue: #1f6fe5;
  --blue-soft: #e6effb;
  --sky: #f2f7fd;
  --text: #5b6c87;
  --text-dark: #33507d;
  --line: #e2eaf5;
  --green: #22b14c;
  --green-dark: #1a9a40;
  --star: #f6b21a;
  --container: 1190px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }

.mcp-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section[id] { scroll-margin-top: 58px; }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- 2. Shared components ---------- */

.mcp-page .i {
  width: 1em; height: 1em; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.mcp-page .f, .mcp-page .i.f { fill: currentColor; stroke: none; flex: none; }

/* Buttons */
.mcp-page .btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 7px; height: 36px; padding: 0 16px;
  border: 1px solid transparent; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; line-height: 1;
  white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s;
}
.mcp-page .btn .i { font-size: 14px; }
.mcp-page .btn--outline { background: #fff; border-color: var(--navy-2); color: var(--navy-2); }
.mcp-page .btn--outline:hover { background: var(--blue-soft); }
.mcp-page .btn--green { background: var(--green); color: #fff; }
.mcp-page .btn--green:hover { background: var(--green-dark); }
.mcp-page .btn--primary { background: var(--navy-2); color: #fff; }
.mcp-page .btn--primary:hover { background: var(--navy); box-shadow: 0 6px 16px rgba(10,42,94,.25); }
.mcp-page .btn--ghost { background: #fff; border-color: #cddbee; color: var(--navy); }
.mcp-page .btn--ghost:hover { background: var(--blue-soft); }
.mcp-page .btn--light { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.45); color: #fff; }
.mcp-page .btn--light:hover { background: rgba(255,255,255,.14); }
.mcp-page .btn--sm { height: 28px; padding: 0 12px; font-size: 10.5px; border-radius: 7px; gap: 5px; }
.mcp-page .btn--sm .i { font-size: 12px; }
.mcp-page .btn--lg { height: 38px; font-size: 12.5px; }
.mcp-page .btn--pill { height: 32px; border-radius: 999px; padding: 0 16px; font-size: 11px; }
.mcp-page .btn--block { width: 100%; }

/* Section tag */
.mcp-page .tag {
  display: inline-flex; align-items: center; gap: 6px;
  height: 19px; padding: 0 10px 0 8px; border-radius: 999px;
  background: #e3edfb; color: var(--blue);
  font-size: 9px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
}
.mcp-page .tag::before {
  content: ""; width: 5px; height: 5px;
  border-radius: 50%; background: var(--blue);
}
.mcp-page .tag--light { background: rgba(255,255,255,.12); color: #9cc4f7; }
.mcp-page .tag--light::before { background: #6aa6f5; }

/* Headings */
.mcp-page .h2 {
  margin-top: 9px; font-size: 24px; font-weight: 800;
  line-height: 1.2; letter-spacing: -.015em; color: var(--navy);
}
.mcp-page .h2--light { color: #fff; }
.mcp-page .h2--cta { font-size: 22px; }
.mcp-page .lead { margin-top: 6px; font-size: 13px; color: var(--text); }
.mcp-page .lead--dark { color: var(--text-dark); }
.mcp-page .lead--light { color: #bcd1ef; font-size: 12px; }

/* Stars */
.mcp-page .stars { display: inline-flex; gap: 2px; color: var(--star); font-size: 12px; }

/* ---------- 3. Hero + quote form ---------- */
.hero {
  position: relative;
  padding: 22px 0;
  background: #2f74c0 url("../images/mcp/hero-bg.webp") left center / cover no-repeat;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(5,32,84,.22) 0%, rgba(5,32,84,0) 55%);
  pointer-events: none;
}
.hero__in {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1fr) 561px;
  gap: 32px;
  align-items: start;
}
.hero__copy { padding-top: 6px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 10px;
  height: 24px; padding: 0 14px; border-radius: 999px;
  background: rgba(232,243,255,.96); border: 1px solid #8fbdf3;
  box-shadow: 0 0 0 3px rgba(143,189,243,.25);
  color: var(--navy); font-size: 9.5px; font-weight: 700; letter-spacing: .06em;
}
.hero__badge i { width: 1px; height: 11px; background: #7ea3d6; }
.hero h1 {
  margin-top: 14px; color: #fff; font-weight: 800;
  line-height: 1.13; text-shadow: 0 2px 14px rgba(0,24,70,.3);
}
.hero__h1-a { display: block; font-size: 38px; letter-spacing: -.02em; }
.hero__h1-b { display: block; margin-top: 2px; font-size: 34px; font-weight: 700; letter-spacing: -.015em; }
.hero__text {
  max-width: 410px; margin-top: 14px; font-size: 14px;
  line-height: 1.55; color: #fff; text-shadow: 0 1px 8px rgba(0,24,70,.4);
}

/* Quote card */
.quote {
  padding: 17px 22px 13px; border-radius: 12px;
  background: #fff; box-shadow: 0 18px 44px rgba(6,32,78,.28);
}
.quote__title { font-size: 18.5px; font-weight: 700; letter-spacing: -.01em; color: #0b2f66; }
.quote__sub { margin-top: 4px; font-size: 12px; color: var(--text); }
.quote__form {
  margin-top: 10px; padding: 10px 14px 12px;
  border-radius: 10px; background: #f7faff;
}
.mcp-page .row { display: grid; gap: 14px; }
.mcp-page .row--2 { grid-template-columns: repeat(2,minmax(0,1fr)); }
.mcp-page .row--3 { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 8px; }
.mcp-page .row--1 { margin-top: 8px; margin-bottom: 12px; }
.mcp-page .field label {
  display: block; margin-bottom: 5px;
  font-size: 11.5px; font-weight: 700; color: var(--navy);
}
.mcp-page .control {
  position: relative; display: flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 11px;
  border: 1px solid #d6e2f1; border-radius: 6px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.mcp-page .control > .i { font-size: 14px; color: var(--navy); }
.mcp-page .control .i--chev { font-size: 13px; color: #55698a; margin-left: auto; pointer-events: none; }
.mcp-page .control:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,229,.15); }
.mcp-page .control.is-invalid { border-color: #e04a4a; box-shadow: 0 0 0 3px rgba(224,74,74,.12); }
.mcp-page .control input,
.mcp-page .control select {
  flex: 1; min-width: 0; height: 100%; padding: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 11.5px; color: #33507d;
}
.mcp-page .control input::placeholder { color: #7e8fa9; opacity: 1; }
.mcp-page .control select { appearance: none; -webkit-appearance: none; cursor: pointer; color: #33507d; }
.mcp-page .control select:invalid { color: #7e8fa9; }
.mcp-page .control--select .i--chev { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); }
.quote__form .btn--primary.btn--block { height: 40px; font-size: 11.5px; font-weight: 700; letter-spacing: .07em; border-radius: 6px; }
.quote__form .btn--primary .i { font-size: 15px; }
.form-msg { min-height: 0; margin-top: 0; font-size: 11.5px; font-weight: 600; }
.form-msg:not(:empty) { margin-top: 10px; }
.form-msg.is-error { color: #d23b3b; }
.form-msg.is-ok { color: #16853a; }
.quote__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px; padding: 0 14px;
}
.quote__foot p { font-size: 10.5px; color: var(--text); }
.quote__btns { display: flex; gap: 8px; }

/* ---------- 4. Trust bar ---------- */
.trust {
  background: linear-gradient(180deg,#f3f8fe 0%,#ebf3fc 100%);
  border-bottom: 1px solid #e4edf8;
}
.trust__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; padding: 24px 6% 24px 20px;
}
.trust__item { display: flex; align-items: center; gap: 14px; }
.trust__div { width: 1px; height: 40px; background: #cddbec; flex: none; }
.trust__g { width: 40px; height: 40px; flex: none; }
.trust__icon { width: 40px; height: 40px; flex: none; color: var(--navy-2); }
.trust__icon.i { stroke-width: 1.6; }
.trust__rating { display: flex; align-items: center; gap: 8px; line-height: 1.1; }
.trust__rating strong { font-size: 18px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; }
.trust__rating .stars { font-size: 14px; }
.trust__title { font-size: 12.5px; font-weight: 700; color: var(--navy); line-height: 1.25; }
.trust__sub { margin-top: 3px; font-size: 10.5px; color: var(--text); }

/* ---------- 5. Why choose us ---------- */
.why { padding: 30px 0 24px; background: linear-gradient(180deg,#fff 0%,#f8fbff 100%); }
.why__in {
  display: grid; grid-template-columns: minmax(0,1fr) 311px;
  gap: 18px; align-items: start;
}
.why__img img {
  width: 100%; height: auto; aspect-ratio: 209/159;
  object-fit: cover; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(10,42,94,.1);
}
.features { display: grid; grid-template-columns: repeat(5,1fr); margin-top: 22px; }
.feature { padding: 4px 6px; text-align: center; }
.feature + .feature { border-left: 1px solid #dfe8f3; }
.feature__ico {
  display: grid; place-items: center;
  width: 46px; height: 46px; margin: 0 auto 10px;
  border-radius: 50%; background: var(--blue-soft); color: var(--navy-2);
}
.feature__ico svg { width: 23px; height: 23px; }
.feature h3 { font-size: 12px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.feature p { margin-top: 5px; font-size: 11px; line-height: 1.45; color: var(--text); }

/* ---------- 6. Popular routes & fares ---------- */
.routes { padding: 26px 0 24px; background: #f3f8fd; }
.routes__in {
  display: grid;
  grid-template-columns: minmax(0,1.62fr) minmax(0,1fr);
  gap: 22px;
}
.fare-card {
  margin-top: 18px; padding: 6px 18px 12px;
  border: 1px solid #e1eaf6; border-radius: 8px;
  background: #fff; box-shadow: 0 2px 10px rgba(10,42,94,.04);
}
.fare-card__cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 46px; }
.fare-list a {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; height: 31px; border-bottom: 1px solid #eef2f8;
  font-size: 12px; color: #3b4f70; transition: color .2s;
}
.fare-list li:last-child a { border-bottom-color: transparent; }
.fare-list a:hover { color: var(--blue); }
.fare-list__name { display: inline-flex; align-items: center; gap: 7px; }
.fare-list__name .i { font-size: 12px; }
.fare-list strong { font-weight: 700; color: var(--navy); }
.link-more {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: 11.5px; font-weight: 600; color: var(--blue);
}
.link-more .i { font-size: 12px; }
.link-more:hover { text-decoration: underline; }
.custom {
  position: relative; align-self: stretch; margin-top: 34px;
  padding: 20px 24px; border-radius: 10px;
  background: #fff; box-shadow: 0 2px 12px rgba(10,42,94,.05); overflow: hidden;
}
.custom__ico { width: 34px; height: 34px; fill: none; stroke: var(--navy-2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.custom h3 { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--navy); }
.custom p { max-width: 250px; margin-top: 6px; font-size: 11.5px; line-height: 1.5; color: var(--text); }
.custom__art { position: absolute; right: 14px; bottom: 10px; width: 140px; height: 92px; }

/* ---------- 7. Our fleet ---------- */
.fleet { padding: 22px 0 14px; background: #fff; }
.fleet__grid {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 18px; margin-top: 14px;
}
.vehicle {
  display: flex; flex-direction: column;
  padding: 12px 18px 14px; border: 1px solid #d8e5f4;
  border-radius: 10px; background: #fff;
  box-shadow: 0 2px 10px rgba(10,42,94,.04);
}
.vehicle__img { display: grid; place-items: center; height: 78px; }
.van { height: auto; max-width: 100%; }
.van--s { width: 124px; }
.van--l { width: 169px; }
.van--xl { width: 209px; }
.vehicle h3 { margin-top: 10px; font-size: 14.5px; font-weight: 700; color: var(--navy); }
.vehicle__pax { margin-top: 2px; font-size: 12.5px; font-weight: 600; color: var(--blue); }
.vehicle__list { display: grid; gap: 8px; margin: 10px 0 12px; }
.vehicle__list li { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--text); }
.vehicle__list .i { font-size: 15px; color: var(--navy-2); stroke-width: 1.6; }
.vehicle .btn--book { margin-top: auto; height: 30px; font-size: 11px; font-weight: 700; border-radius: 5px; }
.vehicle .btn--book .i { font-size: 13px; }
.promo {
  display: flex; flex-direction: column;
  padding: 7px; border-radius: 10px; background: #e8f1fc;
}
.promo img { width: 100%; height: 170px; object-fit: cover; border-radius: 8px; }
.promo__text { margin: 14px 10px 0; font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--navy); }
.promo__bar { display: block; width: 32px; height: 2px; margin: 14px 10px 10px; border-radius: 2px; background: var(--blue); }

/* ---------- 8. Reviews ---------- */
.reviews { padding: 20px 0 18px; background: #f3f8fd; }
.reviews__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.reviews__score { display: flex; align-items: center; gap: 28px; margin-top: 8px; }
.reviews__rating { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.reviews__num { font-size: 19px; font-weight: 700; line-height: 1.1; color: var(--navy); }
.reviews__rating .stars { font-size: 13px; }
.reviews__based { font-size: 10.5px; font-weight: 500; color: var(--navy); }
.reviews__grid {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px; margin-top: 16px;
}
.review {
  display: flex; gap: 16px; padding: 12px 20px 10px;
  border: 1px solid #e6edf7; border-radius: 8px;
  background: #fff; box-shadow: 0 2px 10px rgba(10,42,94,.03);
}
.review__g { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.review blockquote { font-size: 11px; line-height: 1.6; color: var(--text); }
.review figcaption { margin-top: 8px; font-size: 11px; font-weight: 700; color: var(--navy); }
.review .stars { margin-top: 3px; font-size: 11px; }

/* ---------- 9. Service areas ---------- */
.areas {
  position: relative; overflow: hidden; padding: 12px 0 10px;
  background: linear-gradient(90deg,#0a2a5e 0%,#0b3170 55%,#0e3b7d 100%);
  color: #fff;
}
.areas__img {
  position: absolute; top: 0; right: 0; width: 38%; height: 100%;
  object-fit: cover; object-position: right center;
  -webkit-mask-image: linear-gradient(90deg,transparent 0,#000 30%);
  mask-image: linear-gradient(90deg,transparent 0,#000 30%);
}
.areas__in { position: relative; z-index: 1; }
.areas .h2 { margin-top: 6px; line-height: 1.15; font-size: 22px; }
.areas .lead { margin-top: 3px; }
.fares {
  display: grid; grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 11px; max-width: 730px; margin: 10px 0 8px;
}
.fares__box {
  padding: 5px 11px 4px; border: 1px solid rgba(255,255,255,.2);
  border-radius: 6px; background: rgba(255,255,255,.05);
}
.fares__box span { display: block; font-size: 10.5px; color: #d3e3f9; line-height: 1.25; }
.fares__box strong { display: flex; align-items: center; gap: 5px; margin-top: 1px; font-size: 15px; font-weight: 700; line-height: 1.2; color: #fff; }
.fares__box strong .i { font-size: 10px; color: #6aa6f5; }

/* ---------- 10. Final CTA ---------- */
.cta { padding: 30px 0 32px; background: #fff; }
.cta__in {
  display: grid;
  grid-template-columns: minmax(0,1fr) 225px minmax(0,500px);
  gap: 44px; align-items: center;
}
.cta__btns { display: grid; gap: 9px; }
.cta__btns-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.cta__btns-row .btn { height: 30px; }
.cta__feats { display: grid; grid-template-columns: repeat(4,auto); justify-content: space-between; gap: 14px; }
.cta__feats li { text-align: center; }
.cta__feats svg { width: 30px; height: 30px; margin: 0 auto 8px; color: var(--blue); }
.cta__feats svg.i { stroke-width: 1.5; }
.cta__feats h3 { white-space: nowrap; font-size: 11.5px; font-weight: 700; line-height: 1.3; color: var(--navy); }
.cta__feats p { margin-top: 2px; font-size: 10.5px; color: var(--text); }

/* ---------- 11. Responsive ---------- */
@media (max-width: 1180px) {
  .hero__in { grid-template-columns: minmax(0,1fr) 500px; }
  .features { grid-template-columns: repeat(5,1fr); }
  .cta__in { grid-template-columns: minmax(0,1fr) 225px; }
  .cta__feats { grid-column: 1/-1; max-width: 640px; margin: 8px auto 0; width: 100%; }
}

@media (max-width: 980px) {
  .hero { background-position: 20% center; }
  .hero__in { grid-template-columns: 1fr; gap: 28px; }
  .hero__copy { padding: 6px 0 70px; }
  .quote { max-width: 620px; }
  .trust__in { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; padding-right: 20px; }
  .trust__div { display: none; }
  .why__in { grid-template-columns: 1fr; }
  .why__img { order: -1; max-width: 420px; }
  .features { grid-template-columns: repeat(3,1fr); row-gap: 24px; }
  .feature:nth-child(4) { border-left: 0; }
  .routes__in { grid-template-columns: 1fr; }
  .custom { margin-top: 0; min-height: 190px; }
  .fleet__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .promo img { height: 240px; }
  .reviews__head { flex-direction: column; }
  .reviews__grid { grid-template-columns: 1fr; }
  .areas { padding-bottom: 20px; }
  .areas__img { width: 55%; opacity: .55; }
  .fares { grid-template-columns: repeat(3,minmax(0,1fr)); max-width: 460px; }
  .cta__in { grid-template-columns: 1fr; gap: 22px; }
  .cta__btns { max-width: 260px; }
  .cta__feats { max-width: none; }
}

@media (max-width: 600px) {
  .hero__h1-a { font-size: 32px; }
  .hero__h1-b { font-size: 23px; }
  .hero__copy { padding-bottom: 36px; }
  .quote { padding: 18px 14px 14px; }
  .quote__form { padding: 12px 10px 12px; }
  .custom__art { position: static; display: block; margin: 12px 0 0 auto; }
  .custom { min-height: 0; }
  .mcp-page .row--2 { grid-template-columns: 1fr; }
  .mcp-page .row--3 { grid-template-columns: 1fr; }
  .quote__foot { flex-direction: column; align-items: flex-start; padding: 0; }
  .trust__in { grid-template-columns: 1fr; }
  .mcp-page .h2 { font-size: 21px; }
  .features { grid-template-columns: repeat(2,1fr); }
  .feature:nth-child(4) { border-left: 1px solid #dfe8f3; }
  .feature:nth-child(3), .feature:nth-child(5) { border-left: 0; }
  .fleet__grid { grid-template-columns: 1fr; }
  .fare-card__cols { grid-template-columns: 1fr; }
  .fare-list + .fare-list li:first-child a { border-top: 0; }
  .fares { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cta__feats { grid-template-columns: repeat(2,1fr); row-gap: 20px; }
  .reviews__score { flex-wrap: wrap; gap: 14px; }
}

/* ---------- WordPress theme conflict guards ----------
   The Taxiar theme styles bare blockquote/ul/a globally; undo that
   inside the landing page so it matches the reference design. */
/* Bootstrap (loaded later) adds ul padding-left: 2rem. Reset only that —
   margins stay with the component rules (.vehicle__list, .features…). */
.mcp-page ul, .mcp-page ol { padding-left: 0; list-style: none; }
.mcp-page a, .mcp-page a:hover, .mcp-page a:focus { text-decoration: none; }
.mcp-page blockquote {
  margin: 0; padding: 0; border: 0; background: none; box-shadow: none;
  position: static; font-family: inherit; font-style: normal; font-weight: 400;
}
.mcp-page blockquote::before, .mcp-page blockquote::after { content: none; display: none; }

/* ---------- Mobile legibility (Lighthouse: 43% of text < 12px) ---------- */
@media (max-width: 600px) {
  .review blockquote, .feature p, .custom p, .vehicle__list li { font-size: 13px; }
  .trust__sub, .cta__feats p, .review figcaption { font-size: 12.5px; }
  .cta__feats h3 { font-size: 13px; }
  .mcp-page .tag { font-size: 11px; }
}
