/* Mateshwari Group — site styles
   Brand: MUT blue #0F3446 / #1B5E80, bus red #B3262D, EV green #13795B.
   Page sections use inline styles from the approved design; shared chrome,
   forms and interaction states live here. */

:root {
  --ink: #0F3446;
  --blue: #1B5E80;
  --red: #B3262D;
  --red-dark: #8E1E23;
  --green: #13795B;
  --muted: #4A5868;
  --line: #E1E6EB;
  --field: #CBD3DB;
  --bg: #F4F6F8;
  --white: #FFFFFF;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--ink); }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
[id] { scroll-margin-top: 100px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

.site { width: 100%; overflow-x: clip; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: 8px;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; color: var(--white); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px; border-radius: 999px; border: 0;
  font: 600 15px Inter, sans-serif; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: #1B4660; color: var(--white); }
.btn--red { background: var(--red); color: var(--white); }
.btn--red:hover { background: var(--red-dark); color: var(--white); }

/* Hover lift for inline-styled CTA links that use dark/red pill backgrounds */
a[style*="border-radius: 999px"] { transition: filter .15s ease; }
a[style*="border-radius: 999px"]:hover { filter: brightness(1.12); }
a[style*="border-radius: 20px"][style*="text-decoration: none"],
a[style*="border-radius: 14px"][style*="text-decoration: none"] { transition: box-shadow .15s ease, transform .15s ease; }
a[style*="border-radius: 20px"][style*="text-decoration: none"]:hover,
a[style*="border-radius: 14px"][style*="text-decoration: none"]:hover { box-shadow: 0 8px 24px rgba(15, 52, 70, .10); transform: translateY(-2px); }

/* Utility bar */
.utility-bar { background: var(--ink); color: #E6EBF0; font-size: 13px; }
.utility-bar__inner {
  max-width: 1280px; margin: 0 auto; padding: 10px 24px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between;
}
.utility-bar__help { display: flex; gap: 8px; align-items: center; }
.utility-bar a { color: #E6EBF0; text-decoration: none; }
.utility-bar__help a { color: var(--white); font-weight: 600; }
.utility-bar a:hover { color: #F7A1A5; }
.utility-bar__links { display: flex; gap: 16px; }

/* Header */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header__inner {
  max-width: 1280px; margin: 0 auto; padding: 14px 24px;
  display: flex; gap: 16px 32px; align-items: center; justify-content: space-between;
}
.site-header__logo { display: flex; align-items: center; flex-shrink: 0; }
.site-header__logo img { height: 52px; width: auto; display: block; }
.site-nav { display: flex; align-items: center; gap: 4px 28px; font-size: 15px; font-weight: 500; }
.site-nav a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.site-nav a[aria-current="page"] { border-bottom-color: var(--red); font-weight: 700; }
.site-nav .site-nav__cta { padding: 12px 22px; border-bottom: 0; margin-left: 8px; }
.nav-toggle {
  display: none; background: transparent; border: 1px solid var(--line); border-radius: 10px;
  width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--ink); cursor: pointer;
}

@media (max-width: 1080px) {
  .site-header__inner { flex-wrap: wrap; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    border-top: 1px solid var(--line); padding-top: 8px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--line); color: var(--red); }
  .site-nav .site-nav__cta { margin: 12px 0 8px; border-bottom: 0; color: var(--white); }
  .site-header__logo img { height: 44px; }
}

/* Footer */
.site-footer { background: var(--ink); color: #B8C3CE; font-size: 14px; }
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: 56px 24px 32px; display: flex; flex-direction: column; gap: 40px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; line-height: 1.6; }
.site-footer__name { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 20px; color: var(--white); }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; }
.site-footer__head { color: var(--white); font-weight: 600; }
.site-footer a { color: #B8C3CE; text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.site-footer__social { display: flex; gap: 12px; margin-top: 6px; }
.site-footer__bottom {
  border-top: 1px solid #2A5068; padding-top: 20px; font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
}
.site-footer__legal { display: flex; gap: 18px; }

/* Forms */
.form-label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form-control {
  width: 100%; min-height: 48px; border: 1.5px solid var(--field); border-radius: 10px;
  padding: 0 12px; font: 500 15px Inter, sans-serif; color: var(--ink); background: var(--white);
}
textarea.form-control { padding: 12px; resize: vertical; min-height: 110px; }
input[type="file"].form-control { padding: 10px 12px; border-style: dashed; font-size: 14px; }
.form-control:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(27, 94, 128, .18); }
.form-control.is-invalid { border-color: var(--red); }
.form-error { color: var(--red); font-size: 13px; font-weight: 500; }
.form-hint { color: var(--muted); font-size: 12px; font-weight: 400; }
.hp-field { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

.alert {
  border-radius: 14px; padding: 16px 20px; font-size: 15px; line-height: 1.5;
  display: flex; gap: 12px; align-items: flex-start;
}
.alert--success { background: #E7F4EE; border: 1px solid #BFE3D2; color: #0F6249; }
.alert--error { background: #FCEBEC; border: 1px solid #F2C2C5; color: #8A1F24; }

/* Pills (city filter, enquiry type) */
.pill {
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 999px;
  border: 1.5px solid var(--field); background: var(--white); color: var(--ink);
  font: 500 15px Inter, sans-serif; cursor: pointer; text-decoration: none;
}
.pill:hover { border-color: var(--ink); color: var(--ink); }
.pill[aria-current="true"], .pill-radio input:checked + .pill { background: var(--ink); border-color: var(--ink); color: var(--white); font-weight: 600; }
.pill-radio { position: relative; }
.pill-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pill-radio input:focus-visible + .pill { outline: 3px solid var(--red); outline-offset: 2px; }

/* Map embeds */
.map-embed { width: 100%; height: 100%; border: 0; display: block; }

/* Small screens: tighten large section paddings set inline in the design */
@media (max-width: 640px) {
  section[style*="padding: 96px 24px"], section[style*="padding: 88px 24px"], section[style*="padding: 80px 24px"] { padding-top: 56px !important; }
  div[style*="padding: 56px 40px"], div[style*="padding: 52px 40px"], div[style*="padding: 48px 40px"] { padding: 32px 20px !important; }
  div[style*="padding: 40px;"] { padding: 28px 20px !important; }
}
