/* Bedivere IT: the public website.
 *
 * The same navy and gold as the CRM and the brochures, and the brochures'
 * heading treatment (a serif heading over a short gold rule), so a prospect
 * holding a printed brochure recognises the site. Static and dependency-free:
 * no script at all, so there is nothing to break and nothing to patch. */

:root {
  --navy: #16243d;
  --navy-deep: #0d1628;
  --navy-line: #2a3a57;
  --gold: #c9a449;
  --gold-deep: #a8862f;
  --ink: #26303f;
  --muted: #5b6577;
  --rule: #e2ddd1;
  --paper: #fbfaf7;
  --tint: #f3f0e8;
  --card: #ffffff;
  --good: #1e8449;
  --warn: #a8862f;

  --serif: "Spectral", Georgia, "Times New Roman", serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  --wrap: 1120px;
  --gutter: clamp(16px, 4vw, 32px);
  --radius: 10px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--gold-deep); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--gold); color: var(--navy-deep); padding: 8px 14px; border-radius: 6px; z-index: 10;
}
.skip:focus { left: 8px; }

/* ---- Type ------------------------------------------------------------ */

h1, h2, h3 { font-family: var(--serif); color: var(--navy); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.12; font-weight: 600; letter-spacing: -0.01em; }
h2 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.2; font-weight: 600; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 600; }

/* The brochures' mark: a short gold rule under every section heading. */
.section h2::after {
  content: ""; display: block; width: 44px; height: 3px; margin-top: 14px; background: var(--gold); border-radius: 2px;
}

p { margin: 0; }
.lead { font-size: clamp(18px, 2vw, 20px); line-height: 1.6; max-width: 36em; }
.section-lead { color: var(--muted); max-width: 40em; margin-top: 18px; }
.eyebrow {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
}

/* ---- Wordmark ---------------------------------------------------------- */

.wordmark {
  display: inline-flex; align-items: center; gap: 9px; line-height: 1;
  color: var(--navy); text-decoration: none;
}
.wordmark img { display: block; width: auto; }
.wordmark-mark { height: 44px; }
.wordmark-type { height: 19px; }
.wordmark span {
  font-family: var(--sans); font-weight: 700; font-size: 13px; letter-spacing: 0.2em;
  color: var(--gold-deep);
}
.wordmark:hover { color: var(--navy); }
.wordmark-small { gap: 8px; }
.wordmark-small .wordmark-mark { height: 35px; }
.wordmark-small .wordmark-type { height: 15px; }
.wordmark-small span { font-size: 11px; }

/* ---- Buttons ------------------------------------------------------------ */

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px;
  padding: 0 22px; border-radius: 8px; font: 600 16px/1.2 var(--sans); text-decoration: none;
  border: 1.5px solid transparent; transition: background .15s, color .15s, border-color .15s;
}
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: #d8b65e; color: var(--navy-deep); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-deep); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.45); color: #fff; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-small { min-height: 38px; padding: 0 16px; font-size: 15px; }

/* ---- Header ------------------------------------------------------------- */

.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(251, 250, 247, .94); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.top-in { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.top nav { display: flex; gap: 24px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--gold-deep); }

/* ---- Hero --------------------------------------------------------------- */

.hero {
  background:
    radial-gradient(900px 400px at 85% 0%, rgba(201,164,73,.12), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #e9ecf2;
}
.hero-in {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px);
  align-items: center; padding-block: clamp(48px, 8vw, 96px);
}
.hero h1 { color: #fff; margin-top: 14px; }
.hero .lead { margin-top: 22px; color: #d3d9e4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* The example report: what a plan quietly does each month, as a card. */
.report {
  margin: 0; background: var(--card); color: var(--ink); border-radius: var(--radius);
  padding: 22px 24px 18px; box-shadow: 0 24px 60px -24px rgba(0,0,0,.55);
  border-top: 4px solid var(--gold);
}
.report-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 10px; }
.report-title { font-family: var(--serif); font-weight: 600; font-size: 18px; color: var(--navy); }
.report-ok {
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--good); background: #e7f3ec; padding: 4px 9px; border-radius: 99px; white-space: nowrap;
}
.report dl { margin: 0; }
.report dl div {
  display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--rule);
  font-size: 15px;
}
.report dl div:last-child { border-bottom: 0; }
.report dt { color: var(--muted); }
.report dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.report dd.good { color: var(--good); }
.report dd.warn { color: var(--warn); }
.report figcaption { font-size: 13px; color: var(--muted); margin-top: 10px; line-height: 1.5; }

/* ---- Sections ----------------------------------------------------------- */

.section { padding-block: clamp(56px, 8vw, 96px); }
.section-tint { background: var(--tint); border-block: 1px solid var(--rule); }
.section-navy { background: var(--navy); color: #d3d9e4; }
.section-navy h2 { color: #fff; }
.section-navy .section-lead { color: #b9c2d2; }

/* Services */
.services { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.service {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 12px;
}
.service p { color: var(--muted); flex: 1; }
.icon {
  width: 36px; height: 36px; fill: none; stroke: var(--gold-deep); stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.more { font-weight: 600; text-decoration: none; }
.more::after { content: " →"; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.plan {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; gap: 14px;
}
.plan-size {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-deep);
  margin-top: -6px;
}
.plan > p:not(.plan-size) { color: var(--muted); }
.facts {
  list-style: none; margin: 0; padding: 14px 0; border-block: 1px solid var(--rule);
  display: grid; gap: 6px; font-size: 15px;
}
.facts strong { color: var(--navy); }

.ticks, .plain { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; font-size: 15.5px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--gold-deep); border-bottom: 2px solid var(--gold-deep); transform: rotate(-45deg);
}
.plain li { padding-left: 16px; position: relative; color: var(--muted); }
.plain li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; background: var(--rule); border-radius: 50%; }

.included {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 20px;
}
.included > div {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 28px;
  display: flex; flex-direction: column; gap: 16px; align-items: flex-start;
}
.included .btn { margin-top: auto; }

/* Why */
.why { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.why-story p { margin-top: 18px; max-width: 34em; }
.why-story h2 + p { margin-top: 26px; }
.pull {
  font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 22px; line-height: 1.45;
  color: var(--navy); border-left: 3px solid var(--gold); padding-left: 20px; margin-top: 28px !important;
}
.principles { list-style: none; margin: 0; padding: 0; display: grid; gap: 26px; }
.principles li { padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.principles li:last-child { border-bottom: 0; padding-bottom: 0; }
.principles h3 { font-size: 20px; }
.principles p { color: var(--muted); margin-top: 6px; }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact .btn { margin-top: 28px; }
.contact-list { margin: 0; display: grid; gap: 0; }
.contact-list div { padding: 16px 0; border-bottom: 1px solid var(--navy-line); }
.contact-list div:first-child { padding-top: 0; }
.contact-list dt { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.contact-list dd { margin: 4px 0 0; color: #fff; font-size: 17px; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--gold); }

/* Footer */
.foot { background: var(--navy-deep); color: #8f9bb0; font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; padding-block: 28px; }
.foot .wordmark { color: #fff; }
.foot .wordmark span { color: var(--gold); }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot a { color: #c9d1de; text-decoration: none; }
.foot a:hover { color: var(--gold); }

/* 404 */
.lost { min-height: 60vh; display: grid; place-items: center; text-align: center; padding-block: 80px; }
.lost p { color: var(--muted); margin: 16px auto 28px; max-width: 30em; }

/* ---- Narrow screens ----------------------------------------------------- */

@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 640px; }
  .hero-in, .why, .contact { grid-template-columns: minmax(0, 1fr); }
  .report { max-width: 520px; }
}
@media (max-width: 760px) {
  .top nav { display: none; }
  .top-in { justify-content: space-between; }
  .services, .included { grid-template-columns: minmax(0, 1fr); }
  .foot nav { margin-left: 0; }
}
@media (max-width: 420px) {
  .actions .btn { width: 100%; }
  .report { padding: 18px; }
  .report dl div { font-size: 14px; }
}
