/* MedEquipped — design system
   High-end, accessible (medical mobility audience), dependency-free, fast (system fonts). */

:root {
  --ink: #10242b;
  --ink-2: #45606a;
  --brand: #0e5f73;
  --brand-700: #0a4757;
  --brand-900: #06333f;
  --brand-050: #eef6f8;
  --brand-100: #d9edf1;
  --accent: #f4a63c;      /* warm amber — "mobility freedom" */
  --accent-600: #e18d1c;
  --good: #1f9d6b;
  --bg: #f5fafb;
  --surface: #ffffff;
  --surface-2: #f0f7f8;
  --line: #dfeaed;
  --line-2: #cadbdf;
  --shadow-sm: 0 1px 2px rgba(16,36,43,.06), 0 1px 3px rgba(16,36,43,.05);
  --shadow-md: 0 6px 20px rgba(10,71,87,.10), 0 2px 6px rgba(10,71,87,.06);
  --shadow-lg: 0 24px 60px rgba(6,51,63,.16);
  --r-sm: 10px; --r: 16px; --r-lg: 24px; --r-pill: 999px;
  --wrap: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.eyebrow { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; color: var(--brand); }
.muted { color: var(--ink-2); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--ink-2); }

/* Skip link */
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 0; z-index: 200; }
.skip:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; font-size: 1rem;
  padding: .8rem 1.35rem; border-radius: var(--r-pill); border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease; text-decoration: none; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #241304; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-600); box-shadow: var(--shadow-md); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-700); }
.btn-ghost { background: #fff; color: var(--brand-700); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.06rem; }

/* ---------- Header / nav bar ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 1.25rem; padding: .7rem 0; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 900; font-size: 1.28rem;
  letter-spacing: -0.03em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 auto; }
.brand b { color: var(--brand); }
/* the top nav bar: Services · Costs · Blog · FAQ */
.nav-bar { display: flex; gap: .35rem; margin-inline: auto; }
.nav-bar a { color: var(--ink); font-weight: 600; padding: .55rem .85rem; border-radius: var(--r-pill);
  font-size: 1.01rem; }
.nav-bar a:hover { background: var(--brand-050); color: var(--brand-700); text-decoration: none; }
.nav-bar a[aria-current="page"] { background: var(--brand-100); color: var(--brand-900); }
.nav-cta { display: inline-flex; align-items: center; gap: .6rem; }
.nav-phone { font-weight: 800; color: var(--brand-700); white-space: nowrap; }
.nav-toggle { display: none; }
.mobile-nav { display: none; } /*base: desktop hides the secondary strip; the mobile Menu toggle still reveals it*/

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(244,166,60,.20), transparent 60%),
    radial-gradient(900px 600px at 8% 120%, rgba(14,95,115,.14), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--brand-050) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center;
  padding: clamp(.6rem, 1.6vw, 1.4rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero h1 { margin-bottom: .35em; }
.hero .accent { color: var(--brand); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0 1.9rem; }
.chip { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 1px solid var(--line-2);
  padding: .45rem .85rem; border-radius: var(--r-pill); font-size: .92rem; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.chip svg { color: var(--good); }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.hero-art { position: relative; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.hero-scene { display: block; width: 100%; height: auto; }
.hero-badge { position: absolute; bottom: -18px; left: -18px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-md); padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; font-weight: 700; }
.hero-badge svg { color: var(--brand); flex: 0 0 auto; }

/* ---------- Sections ---------- */
section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 720px; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; }
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 1.6rem; box-shadow: var(--shadow-sm); transition: box-shadow .15s ease, transform .15s ease, border-color .15s ease; }
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: var(--line-2); }
.card h3 { margin-bottom: .35rem; }
.card p { margin-bottom: .9rem; color: var(--ink-2); font-size: .98rem; }
.card .more { font-weight: 700; color: var(--brand-700); font-size: .95rem; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand); margin-bottom: 1rem; }
.icon-badge.amber { background: #fdf1de; color: var(--accent-600); }

/* Process steps */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4,1fr); gap: 1.25rem; }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem 1.4rem 1.4rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -16px; left: 1.4rem;
  width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.step h3 { margin-top: .6rem; font-size: 1.1rem; }
.step p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* Banded sections */
.band { background: linear-gradient(180deg, var(--brand-900), var(--brand-700)); color: #eafaff; }
.band h2, .band h3 { color: #fff; }
.band .muted { color: #bfe2ea; }
.band .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.16); color: #eafaff; }
.cta-band { text-align: center; }
.cta-band .hero-cta { justify-content: center; margin-top: 1.6rem; }

/* Service area */
.area-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.area-list li { list-style: none; }
.area-list span { display: inline-block; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: .4rem .9rem; font-weight: 600; font-size: .93rem; }

/* Cost table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
table.cost { width: 100%; border-collapse: collapse; min-width: 560px; background: #fff; }
table.cost th, table.cost td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
table.cost thead th { background: var(--brand-050); color: var(--brand-900); font-size: .92rem; letter-spacing: .01em; }
table.cost tr:last-child td { border-bottom: none; }
table.cost td.range { font-weight: 700; color: var(--brand-700); white-space: nowrap; }

/* FAQ */
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.5rem; margin-bottom: .9rem; }
.faq-item h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.faq-item p { margin: 0; color: var(--ink-2); }

/* Prose (articles / legal) */
.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { margin-top: 2.2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.callout { background: var(--brand-050); border-left: 4px solid var(--brand); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 1rem 1.3rem; margin: 1.5rem 0; }
.updated { font-size: .9rem; color: var(--ink-2); }

/* Breadcrumbs */
.crumbs { font-size: .9rem; color: var(--ink-2); padding-top: 1.4rem; }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c7d6da; padding: 3.5rem 0 2rem; margin-top: 1rem; }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2rem; }
.site-footer a { color: #c7d6da; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.foot-brand { font-weight: 900; font-size: 1.25rem; color: #fff; display: inline-flex; gap: .5rem; align-items: center; }
.foot-legal { border-top: 1px solid rgba(255,255,255,.12); margin-top: 2.5rem; padding-top: 1.4rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .88rem; color: #93a7ac; }
.nap { font-style: normal; line-height: 1.8; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-bar { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .nav-cta .nav-phone { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* Mobile menu (checkbox hack, no JS dependency) */
#nav-menu { display: none; }
@media (max-width: 900px) {
  .mobile-nav { display: none; padding: .5rem 0 1rem; }
  #nav-menu:checked ~ .mobile-nav { display: block; }
  .mobile-nav a { display: block; padding: .7rem .4rem; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
}

/* ---------- Theme toggle + Dark mode (light is default on landing) ---------- */
.theme-toggle { display: inline-grid; place-items: center; width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: color .12s ease, border-color .12s ease; }
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle .moon { display: none; } .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; } :root[data-theme="dark"] .theme-toggle .sun { display: none; }

:root[data-theme="dark"] {
  --ink: #e9f2f4; --ink-2: #a4bbc1;
  --brand: #2fa9c4; --brand-700: #58bdd3; --brand-900: #b9e6f0;
  --brand-050: #10242b; --brand-100: #163741;
  --accent: #f4a63c; --accent-600: #ffb857;
  --bg: #091318; --surface: #0f1f25; --surface-2: #12272f; --line: #1d333b; --line-2: #2b454e;
  --shadow-sm: 0 1px 2px rgba(0,0,0,.5); --shadow-md: 0 8px 24px rgba(0,0,0,.55); --shadow-lg: 0 24px 60px rgba(0,0,0,.6);
}
:root[data-theme="dark"] body { background: var(--bg); color: var(--ink); }
:root[data-theme="dark"] .site-header { background: rgba(9,19,24,.82); border-bottom-color: var(--line); }
:root[data-theme="dark"] .brand, :root[data-theme="dark"] .brand b { color: var(--ink); }
:root[data-theme="dark"] .nav-bar a { color: var(--ink); }
:root[data-theme="dark"] .nav-bar a:hover { background: var(--brand-050); color: var(--brand-700); }
:root[data-theme="dark"] .hero {
  background: radial-gradient(1200px 500px at 85% -10%, rgba(244,166,60,.14), transparent 60%),
    radial-gradient(900px 600px at 8% 120%, rgba(47,169,196,.12), transparent 60%),
    linear-gradient(180deg, #091318 0%, #0d2027 100%); }
:root[data-theme="dark"] .chip,
:root[data-theme="dark"] .hero-card,
:root[data-theme="dark"] .hero-badge,
:root[data-theme="dark"] .step,
:root[data-theme="dark"] .faq-item,
:root[data-theme="dark"] table.cost,
:root[data-theme="dark"] .btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] .area-list span { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
:root[data-theme="dark"] table.cost thead th { background: var(--brand-050); color: var(--ink); }
:root[data-theme="dark"] .btn-primary { color: #241304; }
:root[data-theme="dark"] .card { background: var(--surface); border-color: var(--line); }
/* light is the default: absence of data-theme or data-theme="light" uses :root tokens above */


/* ---------- Team + Testimonials + page hero (added 2026-07-20) ---------- */
.page-hero { padding: clamp(1.4rem, 3vw, 2.4rem) 0 .4rem; }
.page-hero h1 { margin: .2rem 0 .4rem; }
.page-hero .lead { max-width: 720px; }
.band-soft { background: var(--brand-050); border-top: 1px solid var(--brand-100); border-bottom: 1px solid var(--brand-100); }
.team-dept { margin-top: 2.6rem; }
.team-dept:first-child { margin-top: 0; }
.dept-head { display: flex; align-items: baseline; gap: .55rem; margin-bottom: 1.1rem; }
.dept-head h2 { margin: 0; font-size: 1.35rem; }
.dept-head .count { color: var(--ink-2); font-weight: 700; font-size: .95rem; background: var(--brand-050); border: 1px solid var(--brand-100); border-radius: var(--r-pill); padding: .05rem .6rem; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(258px, 1fr)); gap: 1.1rem; }
.team-grid.compact { grid-template-columns: repeat(auto-fill, minmax(216px, 1fr)); }
.member { display: flex; flex-direction: column; gap: .55rem; }
.member .who { display: flex; align-items: center; gap: .7rem; }
.avatar { width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: .98rem; letter-spacing: .02em; background: linear-gradient(135deg, var(--brand), #1a86a0); }
.member .name { font-weight: 700; color: var(--ink); line-height: 1.2; }
.member .role { color: var(--brand-700); font-weight: 600; font-size: .84rem; }
.member .bio { color: var(--ink-2); font-size: .92rem; margin: 0; }
.member .email { font-size: .84rem; font-weight: 600; word-break: break-word; }
.tgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.2rem; }
.tcard { display: flex; flex-direction: column; gap: .6rem; margin: 0; }
.tcard .stars { color: var(--accent); letter-spacing: .14em; font-size: 1rem; }
.tcard .kicker { font-weight: 700; color: var(--brand-700); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.tcard blockquote { margin: 0; color: var(--ink); font-size: 1rem; line-height: 1.55; }
.tcard cite { color: var(--ink-2); font-style: normal; font-weight: 600; font-size: .88rem; margin-top: .3rem; display: block; }
@media (max-width: 640px){ .team-grid, .team-grid.compact, .tgrid { grid-template-columns: 1fr; } }
:root[data-theme="dark"] .band-soft { background: #0d2027; border-color: rgba(255,255,255,.06); }
:root[data-theme="dark"] .dept-head .count { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.10); }


/* mega-menu */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.has-mega > a::after { content: ""; display: inline-block; margin-left: .3em; border: .3em solid transparent; border-top-color: currentColor; border-bottom: 0; vertical-align: middle; opacity: .55; }
.mega { display: none; position: absolute; top: 100%; left: 0; margin-top: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 1.2rem 1.5rem; z-index: 60; grid-template-columns: repeat(3, max-content); gap: .05rem 2.4rem; max-width: min(92vw, 780px); }
.has-mega:hover .mega, .has-mega:focus-within .mega { display: grid; }
.mega-col h4 { margin: 0 0 .5rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); }
.mega-col a { display: block; padding: .3rem 0; font-size: .9rem; font-weight: 500; color: var(--ink); white-space: nowrap; border-radius: 0; background: none; }
.mega-col a:hover { color: var(--brand); background: none; text-decoration: none; }
@media (max-width: 900px) { .mega { display: none !important; } }
:root[data-theme="dark"] .mega { background: #0d2027; border-color: rgba(255,255,255,.1); }
/* article prose (CMS-migrated service pages) */
.article { max-width: 780px; }
.article h2 { margin: 2.1rem 0 .5rem; font-size: 1.38rem; }
.article h3 { margin: 1.5rem 0 .35rem; font-size: 1.1rem; }
.article p { margin: 0 0 1rem; color: var(--ink-2); line-height: 1.7; }
.article ul, .article ol { margin: 0 0 1.1rem 1.2rem; color: var(--ink-2); }
.article li { margin: .35rem 0; }
.article a { color: var(--brand-700); text-decoration: underline; }


/* faq accordion */
.faq-list{display:flex;flex-direction:column;gap:.7rem}
.faq-item{border:1px solid var(--line);border-radius:var(--r);background:var(--surface);padding:0 1.2rem;box-shadow:var(--shadow-sm)}
.faq-item summary{cursor:pointer;list-style:none;padding:1.1rem 0;font-weight:700;color:var(--ink);display:flex;justify-content:space-between;gap:1rem;align-items:center}
.faq-item summary::-webkit-details-marker{display:none}
.faq-item summary::after{content:"+";font-size:1.35rem;color:var(--brand);flex:0 0 auto;line-height:1}
.faq-item[open] summary::after{content:"\2013"}
.faq-a{padding:0 0 1.1rem;color:var(--ink-2);line-height:1.65}
.faq-a p{margin:0 0 .8rem}
:root[data-theme="dark"] .faq-item{background:#0d2027;border-color:rgba(255,255,255,.08)}
