/* ---------------------------------------------------------------
   Meridian Business Services — stylesheet
   Single stylesheet, no build step. Tokens first, then components.
   --------------------------------------------------------------- */

:root {
  --ink:        #0e1b2a;
  --ink-soft:   #33465c;
  --ink-mute:   #61738a;
  --line:       #dde3ea;
  --line-soft:  #eaeff4;
  --bg:         #ffffff;
  --bg-alt:     #f5f8fa;
  --bg-deep:    #0e1b2a;
  --accent:     #106f66;
  --accent-dk:  #0b524b;
  --accent-lt:  #e6f2f0;

  --radius:     10px;
  --radius-lg:  16px;
  --container:  1120px;
  --shadow:     0 1px 2px rgba(14,27,42,.05), 0 8px 24px -12px rgba(14,27,42,.18);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink:       #eaf0f6;
    --ink-soft:  #b7c4d3;
    --ink-mute:  #8a9aad;
    --line:      #24384d;
    --line-soft: #1a2b3d;
    --bg:        #0c1622;
    --bg-alt:    #111f2e;
    --bg-deep:   #081019;
    --accent:    #4bbfae;
    --accent-dk: #7ad5c5;
    --accent-lt: #102c2c;
    --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  }
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.18;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-weight: 650;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.15rem); }
h3 { font-size: 1.18rem; }
p  { margin: 0 0 1.1em; }
a  { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-dk); }
img { max-width: 100%; height: auto; }
ul, ol { padding-left: 1.15em; }
li { margin-bottom: .45em; }
strong { color: var(--ink); font-weight: 620; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: 760px; }

/* --- skip link --- */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: #fff; }

/* --- header / nav --- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; gap: 28px; min-height: 70px; }
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em;
  color: var(--ink); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-dk));
  display: grid; place-items: center;
  color: #fff; font-size: .82rem; font-weight: 800; letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links li { margin: 0; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 500;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 10px; cursor: pointer; color: var(--ink);
}

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; inset: 70px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .nav-links[hidden] { display: none; }
  .nav-links a { display: block; padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
  .nav-links a.btn { border-bottom: 0; margin-top: 12px; text-align: center; }
}

/* --- buttons --- */
.btn {
  display: inline-block; padding: 13px 24px; border-radius: var(--radius);
  font-weight: 600; font-size: .97rem; text-decoration: none; border: 1px solid transparent;
  cursor: pointer; transition: background .15s, border-color .15s, transform .15s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dk); color: #fff; transform: translateY(-1px); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-mute); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* --- sections --- */
section { padding: 76px 0; }
.section-alt { background: var(--bg-alt); }
.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 62ch; }
.section-head { max-width: 62ch; margin-bottom: 44px; }

/* --- hero --- */
.hero { padding: 92px 0 84px; background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); }
.hero h1 { max-width: 17ch; }
.hero .lede { font-size: 1.24rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }

.hero-panel {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow);
}
.hero-panel h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 18px; }
.panel-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line-soft); }
.panel-item:first-of-type { border-top: 0; padding-top: 0; }
.panel-item .num {
  flex: none; width: 26px; height: 26px; border-radius: 7px; background: var(--accent-lt);
  color: var(--accent); font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}
.panel-item p { margin: 0; font-size: .95rem; }
.panel-item strong { display: block; }

/* --- page header (interior pages) --- */
.page-head { padding: 68px 0 56px; background: var(--bg-alt); border-bottom: 1px solid var(--line-soft); }
.page-head h1 { max-width: 20ch; }
.crumb { font-size: .88rem; color: var(--ink-mute); margin-bottom: 18px; }
.crumb a { color: var(--ink-mute); text-decoration: none; }
.crumb a:hover { color: var(--accent); text-decoration: underline; }

/* --- grids & cards --- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .4em; }
.card p { font-size: .97rem; }
.card ul { font-size: .95rem; margin: 0 0 20px; }
.card .card-link { margin-top: auto; font-weight: 600; font-size: .95rem; text-decoration: none; }
.card .card-link:hover { text-decoration: underline; }
.card-icon {
  width: 42px; height: 42px; border-radius: 11px; background: var(--accent-lt); color: var(--accent);
  display: grid; place-items: center; margin-bottom: 20px;
}
.card-icon svg { width: 21px; height: 21px; }

/* --- numbered steps --- */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 22px; padding: 26px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-size: 1rem; font-weight: 700; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.step h3 { margin-bottom: .3em; }
.step p { margin: 0; font-size: .97rem; }

/* --- split content --- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }

.tick-list { list-style: none; padding: 0; margin: 0; }
.tick-list li { position: relative; padding-left: 30px; margin-bottom: 12px; font-size: .98rem; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 15px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.box {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; background: var(--bg-alt);
}
.box-accent { background: var(--accent-lt); border-color: var(--accent); }
.box h3 { margin-top: 0; }
.box p:last-child, .box ul:last-child { margin-bottom: 0; }

/* --- stat strip --- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 680px) { .stats { grid-template-columns: 1fr; } }
.stat { border-left: 3px solid var(--accent); padding-left: 20px; }
.stat b { display: block; font-size: 1.9rem; color: var(--ink); line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: .93rem; color: var(--ink-mute); }

/* --- FAQ --- */
.faq details { border-top: 1px solid var(--line); padding: 20px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink); font-size: 1.03rem;
  list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--accent); font-weight: 400; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 14px 0 0; font-size: .98rem; max-width: 72ch; }

/* --- CTA band --- */
.cta-band { background: var(--bg-deep); color: #c9d6e2; padding: 72px 0; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #a9bccd; max-width: 58ch; }
.cta-band a.btn-ghost { border-color: rgba(255,255,255,.28); color: #fff; }
.cta-band a.btn-ghost:hover { border-color: #fff; color: #fff; }

/* --- forms --- */
.form-grid { display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .9rem; font-weight: 600; color: var(--ink); }
.field .hint { font-size: .84rem; color: var(--ink-mute); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 680px) { .field-row { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; }

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 16px 0; border-top: 1px solid var(--line-soft); margin: 0; }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list b { display: block; color: var(--ink); font-size: .88rem; }
.contact-list span, .contact-list a { font-size: .97rem; }

/* --- footer --- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 60px 0 30px; font-size: .94rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-mute); margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-about p { color: var(--ink-mute); max-width: 38ch; font-size: .93rem; }
.footer-bar {
  margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between;
  align-items: flex-start;
  color: var(--ink-mute); font-size: .88rem;
}
/* Statutory trading disclosure — registered name, number and office.
   Required on the website because we trade under a name that is not the
   registered name. Do not remove. */
.footer-bar .legal { max-width: 62ch; line-height: 1.55; }
.footer-bar .legal strong { color: var(--ink-soft); font-weight: 650; }

/* --- utilities --- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--ink-mute); font-size: .93rem; }
