/* MediPath Courier Systems - multi-page site styles
   Colors from locked logo: medical blue + orange accents
   Live aesthetic: Layout B (dark hero) */

:root {
  --mp-blue: #004c8c;
  --mp-blue-deep: #003366;
  --mp-blue-mid: #0a6bb5;
  --mp-blue-soft: #e8f1f8;
  --mp-orange: #f05a00;
  --mp-orange-deep: #d14e00;
  --mp-orange-soft: #fff0e6;
  --mp-ink: #1a2332;
  --mp-muted: #5a6575;
  --mp-line: #d4dde6;
  --mp-white: #ffffff;
  --mp-bg: #f7f9fc;
  --mp-radius: 12px;
  --mp-shadow: 0 8px 28px rgba(0, 51, 102, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--mp-ink);
  background: var(--mp-bg);
  line-height: 1.55;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--mp-blue);
  text-decoration: none;
}

a:hover {
  color: var(--mp-orange);
}

.wrap {
  width: min(1100px, 92%);
  margin-inline: auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.btn-primary {
  background: var(--mp-orange);
  color: var(--mp-white);
}

.btn-primary:hover {
  background: var(--mp-orange-deep);
  color: var(--mp-white);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--mp-white);
}

.btn-ghost:hover {
  background: var(--mp-white);
  color: var(--mp-blue-deep);
  border-color: var(--mp-white);
}

.btn-outline {
  background: transparent;
  border-color: var(--mp-blue);
  color: var(--mp-blue);
}

.btn-outline:hover {
  background: var(--mp-blue);
  color: var(--mp-white);
}

.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mp-blue);
  background: var(--mp-blue-soft);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
}

.section {
  padding: 3.5rem 0;
}

.section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  color: var(--mp-blue-deep);
}

.section .lede {
  color: var(--mp-muted);
  margin: 0 0 1.75rem;
  max-width: 42rem;
}

.card-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.card {
  background: var(--mp-white);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  padding: 1.35rem 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 51, 102, 0.04);
}

.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.05rem;
  color: var(--mp-blue-deep);
}

.card p {
  margin: 0;
  color: var(--mp-muted);
  font-size: 0.95rem;
}

.card .accent-bar {
  width: 2.25rem;
  height: 4px;
  background: var(--mp-orange);
  border-radius: 2px;
  margin-bottom: 0.85rem;
}

/* - - - Masthead / nav (Layout B) - - - */
.masthead {
  background: var(--mp-blue-deep);
  color: var(--mp-white);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
}

.brand-mark:hover {
  color: inherit;
}

.brand-mark img {
  height: 44px;
  width: auto;
  background: var(--mp-white);
  border-radius: 8px;
  padding: 3px;
}

.brand-text strong {
  display: block;
  font-size: 1rem;
  line-height: 1.2;
}

.brand-text span {
  font-size: 0.78rem;
  opacity: 0.85;
}

.masthead nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.masthead nav a {
  color: #d6e6f5;
  padding: 0.25rem 0;
}

.masthead nav a:hover,
.masthead nav a[aria-current="page"] {
  color: var(--mp-white);
}

.masthead nav a[aria-current="page"] {
  border-bottom: 2px solid var(--mp-orange);
}

.masthead .nav-call {
  background: var(--mp-orange);
  color: var(--mp-white) !important;
  padding: 0.45rem 0.9rem !important;
  border-radius: 999px;
  border-bottom: none !important;
}

.masthead .nav-call:hover {
  background: var(--mp-orange-deep);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--mp-white);
  border-radius: 8px;
  padding: 0.4rem 0.65rem;
  font-weight: 700;
  cursor: pointer;
  font: inherit;
  font-size: 0.85rem;
}

/* - - - Hero - - - */
.hero-band {
  background: linear-gradient(135deg, var(--mp-blue-deep) 0%, var(--mp-blue) 55%, var(--mp-blue-mid) 100%);
  color: var(--mp-white);
  padding: 2.75rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.hero-band::after {
  content: "";
  position: absolute;
  right: -8%;
  top: -20%;
  width: 40%;
  height: 140%;
  background: radial-gradient(circle, rgba(240, 90, 0, 0.35), transparent 65%);
  pointer-events: none;
}

.hero-band .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
}

.hero-band .logo-panel {
  background: var(--mp-white);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: var(--mp-shadow);
}

.hero-band .logo-panel img {
  width: 100%;
}

.hero-band .motto {
  display: inline-block;
  background: var(--mp-orange);
  color: var(--mp-white);
  font-weight: 700;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  margin: 0 0 1rem;
  font-size: 1.05rem;
}

.hero-band h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.2;
}

.hero-band p {
  margin: 0 0 1.35rem;
  opacity: 0.92;
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-band.page-hero .wrap {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-inline: auto;
}

.hero-band.page-hero {
  padding: 2.25rem 0 2.75rem;
}

.hero-band.page-hero h1 {
  font-size: clamp(1.55rem, 2.8vw, 2.1rem);
}

/* - - - Content panels - - - */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.panel {
  background: var(--mp-white);
  border-radius: var(--mp-radius);
  border: 1px solid var(--mp-line);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.05);
}

.panel h2 {
  margin-top: 0;
}

.services-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.services-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--mp-line);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.services-list li:last-child {
  border-bottom: none;
}

.services-list .dot {
  width: 10px;
  height: 10px;
  margin-top: 0.4rem;
  border-radius: 50%;
  background: var(--mp-orange);
  flex-shrink: 0;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.trust-item {
  background: var(--mp-white);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  padding: 1.1rem 1.15rem;
  text-align: center;
}

.trust-item strong {
  display: block;
  color: var(--mp-blue-deep);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.trust-item span {
  color: var(--mp-muted);
  font-size: 0.88rem;
}

.area-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.area-chips li {
  background: var(--mp-blue-soft);
  color: var(--mp-blue-deep);
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid #c5d8ea;
}

.area-map-stub {
  background: linear-gradient(180deg, var(--mp-blue-soft), #fff);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--mp-blue-deep);
  padding: 1.5rem;
  font-weight: 600;
  gap: 0.35rem;
}

.area-map-stub .sub {
  font-weight: 500;
  font-size: 0.9rem;
  opacity: 0.85;
  color: var(--mp-muted);
}

.note-soft {
  font-size: 0.9rem;
  color: var(--mp-muted);
  margin-top: 1rem;
}

.cta-strip {
  background: var(--mp-orange-soft);
  border-top: 3px solid var(--mp-orange);
  border-bottom: 3px solid var(--mp-orange);
  padding: 2rem 0;
}

.cta-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.cta-strip h2 {
  margin: 0;
  color: var(--mp-blue-deep);
  font-size: 1.35rem;
}

.cta-strip p {
  margin: 0.35rem 0 0;
  color: var(--mp-muted);
}

.cta-strip .phone {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--mp-blue-deep);
}

.cta-strip .phone a {
  color: inherit;
}

.cta-strip .phone a:hover {
  color: var(--mp-orange);
}

/* - - - Contact form - - - */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}

.contact-card {
  background: var(--mp-blue-deep);
  color: var(--mp-white);
  border-radius: var(--mp-radius);
  padding: 1.75rem;
}

.contact-card h2 {
  color: var(--mp-white);
  margin-top: 0;
}

.contact-card a {
  color: #ffd2b3;
}

.contact-card a:hover {
  color: var(--mp-white);
}

.contact-card .phone {
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0.75rem 0;
}

.contact-card dl {
  margin: 1.25rem 0 0;
}

.contact-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.75;
  margin-top: 0.85rem;
}

.contact-card dd {
  margin: 0.2rem 0 0;
}

.form-panel {
  background: var(--mp-white);
  border: 1px solid var(--mp-line);
  border-radius: var(--mp-radius);
  padding: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.05);
}

.form-panel h2 {
  margin-top: 0;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--mp-blue-deep);
  margin-bottom: 0.35rem;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--mp-line);
  border-radius: 8px;
  font: inherit;
  color: var(--mp-ink);
  background: #fff;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(0, 76, 140, 0.35);
  border-color: var(--mp-blue);
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.form-hint {
  font-size: 0.85rem;
  color: var(--mp-muted);
  margin: 0.5rem 0 0;
}

.prose {
  max-width: 42rem;
}

.prose p {
  color: var(--mp-muted);
}

.prose ul {
  color: var(--mp-muted);
  padding-left: 1.2rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 0.65rem 0 0.65rem 1.75rem;
  border-bottom: 1px solid var(--mp-line);
  color: var(--mp-muted);
}

.checklist li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mp-orange);
}

/* - - - Footer - - - */
.site-footer {
  background: var(--mp-blue-deep);
  color: #b8c9db;
  padding: 2.5rem 0 1.5rem;
  margin-top: 0;
  font-size: 0.92rem;
}

.site-footer a {
  color: #d6e6f5;
}

.site-footer a:hover {
  color: var(--mp-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand strong {
  display: block;
  color: var(--mp-white);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.footer-brand .motto-line {
  color: var(--mp-orange);
  font-weight: 650;
  margin-bottom: 0.65rem;
}

.footer-col h3 {
  margin: 0 0 0.65rem;
  color: var(--mp-white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-bottom {
  padding-top: 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.9;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* - - - Responsive - - - */
@media (max-width: 860px) {
  .hero-band .wrap,
  .split,
  .contact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-block;
  }

  .masthead nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding-top: 0.75rem;
  }

  .masthead nav.is-open {
    display: flex;
  }

  .masthead-inner {
    flex-wrap: wrap;
  }

  .masthead .nav-call {
    margin-top: 0.35rem;
  }
}

@media (max-width: 480px) {
  .brand-text strong {
    font-size: 0.92rem;
  }

  .cta-strip .phone {
    font-size: 1.25rem;
  }
}

/* Archive Layout A (kept for index-a / archive) */
.site-a .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--mp-line);
}

.site-a .topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.site-a .topbar nav a {
  color: var(--mp-ink);
}

.site-a .hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
  padding: 3rem 0 3.5rem;
}

.site-a .hero-copy .motto {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  color: var(--mp-orange);
  font-weight: 650;
  margin: 0.75rem 0 1rem;
}

.site-a .hero-copy h1 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.75rem, 3.2vw, 2.45rem);
  color: var(--mp-blue-deep);
  line-height: 1.2;
}

.site-a .hero-copy p {
  color: var(--mp-muted);
  margin: 1rem 0 1.5rem;
  max-width: 36rem;
}

.site-a .hero-logo {
  background: linear-gradient(160deg, var(--mp-blue-soft), #fff 55%);
  border: 1px solid var(--mp-line);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: var(--mp-shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-a .hero-logo img {
  width: min(420px, 100%);
}

.site-a .area-box {
  background: var(--mp-blue-soft);
  border-radius: var(--mp-radius);
  padding: 1.5rem 1.75rem;
  border-left: 5px solid var(--mp-orange);
}

.site-a .contact-panel {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
}

.site-a .contact-card {
  background: var(--mp-blue-deep);
  color: var(--mp-white);
  border-radius: var(--mp-radius);
  padding: 1.75rem;
}

.site-a .booking-stub {
  border: 2px dashed var(--mp-line);
  border-radius: var(--mp-radius);
  padding: 1.5rem;
  background: #fafbfc;
}

.site-a footer {
  border-top: 1px solid var(--mp-line);
  padding: 1.5rem 0 2rem;
  color: var(--mp-muted);
  font-size: 0.9rem;
}

@media (max-width: 800px) {
  .site-a .hero,
  .site-a .contact-panel {
    grid-template-columns: 1fr;
  }

  .site-a .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
