/* V & R Business Services Limited - site styles
   One stylesheet, no framework. Light and dark are two token sets on :root;
   the choice is stored by theme.js and applied before first paint. */

:root {
  --bg: #f5f3ee;
  --bg-2: #faf9f6;
  --panel: #ffffff;
  --line: #e2ddd3;
  --line-2: #cbc4b7;
  --ink: #1a1d23;
  --ink-2: #4a505b;
  --ink-3: #7a808d;
  --accent: #1f5d59;
  --accent-2: #174a47;
  --accent-ink: #ffffff;
  --accent-soft: #e4efec;
  --shadow: 0 1px 2px rgba(20, 24, 30, 0.04), 0 8px 24px -12px rgba(20, 24, 30, 0.12);
  --radius: 12px;
  --max: 68rem;
  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #101317;
  --bg-2: #14181d;
  --panel: #191e24;
  --line: #262c34;
  --line-2: #363d47;
  --ink: #e8e6e0;
  --ink-2: #b1b6bf;
  --ink-3: #7e8592;
  --accent: #7fc4b9;
  --accent-2: #9ad3ca;
  --accent-ink: #0d1a18;
  --accent-soft: #182624;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px -12px rgba(0, 0, 0, 0.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: no-preference) {
  body { transition: background-color .25s ease, color .25s ease; }
}

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.25rem, 5.2vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
p.lede { font-size: 1.2rem; color: var(--ink-2); max-width: 40em; }
.eyebrow {
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin: 0 0 1rem;
}
.muted { color: var(--ink-2); }
.small { font-size: .92rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1rem; }
@media (min-width: 40em) { .wrap { padding: 0 1.5rem; } }

.skip {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--accent-ink);
  padding: .5rem .75rem; border-radius: 0 0 8px 8px; z-index: 10;
}
.skip:focus { left: 1rem; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  position: sticky; top: 0; z-index: 5;
}
.site-header .wrap {
  display: flex; align-items: center; gap: 1rem;
  min-height: 4.25rem; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-size: 1.15rem; font-weight: 500;
  letter-spacing: -0.005em; margin-right: auto;
}
.brand .mark { width: 34px; height: 34px; flex: none; display: block; }
.brand .mark rect { fill: var(--accent); }
.brand .mark text { fill: var(--accent-ink); }
.brand span small { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; line-height: 1.2; }
.nav { display: flex; gap: .15rem; align-items: center; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-weight: 500;
  padding: .45rem .7rem; border-radius: 8px; font-size: .98rem;
}
.nav a:hover { color: var(--ink); background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); border-radius: 8px 8px 0 0; }

.theme-toggle {
  appearance: none; border: 1px solid var(--line-2); background: var(--panel);
  color: var(--ink-2); width: 2.4rem; height: 2.4rem; border-radius: 999px;
  display: inline-grid; place-items: center; cursor: pointer; margin-left: .35rem;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }

@media (max-width: 40em) {
  .site-header .wrap { padding-top: .6rem; padding-bottom: .6rem; }
  .brand { font-size: 1.05rem; }
  .nav { width: 100%; order: 3; justify-content: flex-start; margin-left: -.5rem; }
  .nav a { padding: .35rem .5rem; font-size: .93rem; }
}

/* Sections */
main { display: block; }
.section { padding: 4.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tight { padding: 3rem 0; }
.section.alt { background: var(--bg-2); }
@media (max-width: 40em) { .section { padding: 3rem 0; } }

.hero { padding: 5.5rem 0 4.5rem; }
.hero h1 { max-width: 16em; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.75rem; }
@media (max-width: 40em) { .hero { padding: 3.5rem 0 3rem; } }

.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .7rem 1.15rem; border-radius: 999px; font-weight: 600;
  text-decoration: none; font-size: .98rem; border: 1px solid transparent;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-2); color: var(--accent-ink); }
.btn.ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn.ghost:hover { background: var(--accent-soft); border-color: var(--accent); }

.grid-2 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
.grid-3 { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48em) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
}

.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: .25rem; }
.card ul { padding-left: 1.1rem; margin: .75rem 0 0; }
.card li { margin: .3rem 0; }
.card .more { display: inline-block; margin-top: 1rem; font-weight: 600; text-decoration: none; }
.card .more::after { content: " \2192"; }

.two-col { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 52em) { .two-col { grid-template-columns: 1fr 2fr; gap: 3rem; } }
.two-col h2 { position: sticky; top: 5.5rem; }

.service { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.service:first-of-type { border-top: 0; padding-top: 0; }
.service h3 { margin-bottom: .35rem; }
.service p { margin-bottom: .5em; }
.service ul { margin: .5rem 0 0; padding-left: 1.1rem; color: var(--ink-2); }
.service li { margin: .25rem 0; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; }
@media (min-width: 48em) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: step; padding-top: .5rem; border-top: 2px solid var(--line-2); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif); font-size: 1.1rem; color: var(--accent); display: block; margin-bottom: .5rem;
}
.steps h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.steps p { color: var(--ink-2); margin: 0; }

.band {
  background: var(--accent); color: var(--accent-ink);
  border-radius: var(--radius); padding: 2.25rem;
  display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 48em) { .band { grid-template-columns: 1.4fr 1fr; padding: 2.75rem; } }
.band h2, .band p { color: inherit; }
.band a { color: inherit; }
.band .btn.ghost { border-color: color-mix(in srgb, var(--accent-ink) 50%, transparent); color: inherit; }
.band .btn.ghost:hover { background: color-mix(in srgb, var(--accent-ink) 12%, transparent); border-color: var(--accent-ink); }
.band dl { margin: 0; display: grid; gap: .6rem; }
.band dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
.band dd { margin: 0; font-size: 1.05rem; }

.contact-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 48em) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-grid dl { margin: 0; }
.contact-grid dt { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-top: 1.1rem; }
.contact-grid dt:first-child { margin-top: 0; }
.contact-grid dd { margin: .2rem 0 0; font-size: 1.1rem; }
.contact-grid address { font-style: normal; }

.details { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.details div { display: grid; grid-template-columns: 1fr; gap: .15rem; padding: .85rem 1.1rem; border-top: 1px solid var(--line); }
.details div:first-child { border-top: 0; }
@media (min-width: 40em) { .details div { grid-template-columns: 12rem 1fr; gap: 1rem; } }
.details dt { color: var(--ink-3); font-size: .9rem; }
.details dd { margin: 0; }

.prose { max-width: 44em; }
.prose h2 { margin-top: 2.25rem; font-size: 1.5rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: .35rem 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; color: var(--ink-2); font-size: .95rem; background: var(--bg-2); }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 48em) { .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 .75rem; }
.site-footer address { font-style: normal; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--ink); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer .legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .88rem; color: var(--ink-3); }
