/* True Bearing Medical Courier — site styles */
:root {
  --ink: #0f2a3d;          /* chart ink: text, dark panels */
  --ink-soft: #3d5568;     /* secondary text */
  --paper: #f3f6f7;        /* page background */
  --white: #ffffff;
  --rule: #c9d5db;         /* hairlines, borders */
  --course: #13836b;       /* accent: links, buttons, the plotted course */
  --course-dark: #0d6653;
  --needle: #d6402e;       /* used only on the bearing needle */
  --focus: #f2b632;

  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wide: 112%;            /* font-stretch for display type */

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3125rem;
  --step-2: 1.75rem;
  --step-3: clamp(2.1rem, 4.2vw, 3.1rem);
  --step-4: clamp(2.6rem, 6vw, 4.4rem);

  --gutter: clamp(16px, 4vw, 40px);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.55;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--course-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--white); padding: 8px 12px; z-index: 10; }

h1, h2, h3 { font-stretch: var(--wide); line-height: 1.08; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); font-weight: 800; }
h2 { font-size: var(--step-3); font-weight: 750; }
h3 { font-size: var(--step-1); font-weight: 700; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 62ch; }
.lede { font-size: var(--step-1); color: var(--ink-soft); line-height: 1.45; max-width: 46ch; }

/* Header */
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-stretch: var(--wide); font-size: 1.08rem; line-height: 1.1; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand small { display: block; font-weight: 500; font-stretch: 100%; font-size: 0.8rem; color: var(--ink-soft); }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 12px; font-weight: 600; font-size: 0.98rem; border-radius: 4px; }
.nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--course); border-radius: 0; }
.nav a:hover { color: var(--course-dark); }
.nav .btn { margin-left: 8px; }
.menu-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--course); color: var(--white) !important; border: 2px solid var(--course);
  padding: 12px 20px; border-radius: 4px; font: inherit; font-weight: 700; font-size: 1rem;
  text-decoration: none; cursor: pointer;
}
.btn:hover { background: var(--course-dark); border-color: var(--course-dark); }
.btn-ghost { background: transparent; color: var(--ink) !important; border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--white) !important; border-color: var(--ink); }

/* Hero */
.hero { padding: clamp(48px, 8vw, 104px) 0 clamp(48px, 7vw, 88px); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 13ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-call { margin-top: 18px; color: var(--ink-soft); font-size: var(--step--1); }
.hero-call a { font-weight: 700; }

.dial { position: relative; margin: 0; width: 100%; max-width: 440px; justify-self: end; }
.dial svg { width: 100%; height: auto; }
.dial .needle { transform-origin: 200px 200px; transform: rotate(var(--bearing, 42deg)); }
.dial-readout { display: flex; justify-content: space-between; border-top: 1px solid var(--rule); margin-top: 12px; padding-top: 10px; font-size: var(--step--1); color: var(--ink-soft); }
.dial-readout strong { color: var(--ink); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .dial .needle { animation: swing 1.6s cubic-bezier(.3,1.4,.5,1) 0.25s both; }
  @keyframes swing { from { transform: rotate(-70deg); } to { transform: rotate(var(--bearing, 42deg)); } }
}

/* Sections */
.section { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--rule); }
.section-dark { background: var(--ink); color: #e6eef2; border-top: 0; }
.section-dark h2, .section-dark h3 { color: var(--white); }
.section-dark p { color: #c3d2db; }
.section-dark a { color: #7fd6bf; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 40px; }
.section-head p { margin: 0; color: var(--ink-soft); }
.section-dark .section-head p { color: #c3d2db; }

/* Cargo list: a ruled manifest, not cards */
.manifest { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.manifest li { display: grid; grid-template-columns: minmax(180px, 0.9fr) minmax(0, 2fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--rule); }
.manifest h3 { margin: 0; }
.manifest p { margin: 0; color: var(--ink-soft); }

/* Process: a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.steps li { counter-increment: step; padding: 0 24px 0 0; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px;
  border: 2px solid #7fd6bf; border-radius: 50%; color: var(--white); font-weight: 800; margin-bottom: 18px;
  background: var(--ink); position: relative; z-index: 1;
}
.steps li:not(:last-child)::after {
  content: ""; position: absolute; top: 20px; left: 40px; right: 0; border-top: 2px dashed #3f6a80;
}
.steps p { font-size: 0.98rem; }

/* Service area */
.area { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.places { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.places li { padding: 8px 0; border-bottom: 1px solid var(--rule); break-inside: avoid; }

/* Standards */
.standards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 40px; }
.standards div { border-left: 3px solid var(--course); padding-left: 18px; }
.standards p { color: var(--ink-soft); margin: 0; }

/* CTA band */
.cta-band { background: var(--white); border-top: 1px solid var(--rule); padding: clamp(48px, 7vw, 80px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band h2 { margin: 0; max-width: 20ch; }
.cta-band .hero-actions { margin: 0; }

/* Page header for inner pages */
.page-head { padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 40px); }
.page-head h1 { font-size: var(--step-3); max-width: 22ch; }

/* Services detail */
.service { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr); gap: 32px; padding: 36px 0; border-top: 1px solid var(--rule); }
.service ul { margin: 0; padding-left: 1.2em; color: var(--ink-soft); }
.service li { margin-bottom: 6px; }
.service h2 { font-size: var(--step-2); }

/* Forms */
.quote-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 64px); align-items: start; padding-bottom: clamp(56px, 8vw, 96px); }
form.quote { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; padding: clamp(20px, 4vw, 36px); }
fieldset { border: 0; padding: 0; margin: 0 0 28px; }
legend { font-weight: 800; font-stretch: var(--wide); font-size: var(--step-1); margin-bottom: 14px; padding: 0; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: var(--step--1); color: var(--ink-soft); }
input, select, textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #9fb2bd; border-radius: 4px; padding: 11px 12px; width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--course); outline: 3px solid rgba(19,131,107,.25); outline-offset: 0; }
textarea { min-height: 120px; resize: vertical; }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.checks label { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.checks input { width: 20px; height: 20px; accent-color: var(--course); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { background: #fff6df; border: 1px solid #ecd59b; border-radius: 4px; padding: 12px 14px; font-size: var(--step--1); margin-bottom: 20px; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 4px; display: none; }
.form-status[data-state="ok"] { display: block; background: #e3f4ee; border: 1px solid #9fd8c6; }
.form-status[data-state="error"] { display: block; background: #fde8e5; border: 1px solid #f0b2a8; }
.aside-block { border-top: 2px solid var(--ink); padding-top: 18px; margin-bottom: 32px; }
.aside-block p { color: var(--ink-soft); }
.big-phone { font-size: var(--step-2); font-weight: 800; font-stretch: var(--wide); text-decoration: none; color: var(--ink); }

.prose { max-width: 70ch; padding-bottom: clamp(56px, 8vw, 96px); }
.prose h2 { font-size: var(--step-1); margin-top: 1.8em; }

/* Footer */
.site-footer { background: var(--ink); color: #c3d2db; padding: 48px 0 32px; font-size: 0.95rem; }
.site-footer a { color: #e6eef2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h3 { color: var(--white); font-size: 1rem; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-base { border-top: 1px solid #2c4a5e; margin-top: 36px; padding-top: 20px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: var(--step--1); }

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap, .section-head, .area, .quote-layout, .service { grid-template-columns: 1fr; }
  .dial { justify-self: start; max-width: 340px; }
  .standards { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .steps li:nth-child(2)::after { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex; align-items: center; gap: 8px; background: none; border: 1.5px solid var(--ink);
    border-radius: 4px; padding: 8px 12px; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer;
  }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--paper);
    flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; border-bottom: 1px solid var(--rule); z-index: 5; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--rule); }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--course); padding-left: 12px; }
  .nav .btn { margin: 14px 0 0; }
  .site-header { position: relative; }
}
@media (max-width: 600px) {
  .manifest li { grid-template-columns: 1fr; gap: 6px; }
  .standards, .steps, .grid-2, .checks, .footer-grid { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .places { columns: 1; }
  .brand small { display: none; }
}
