/* Cav Business Solutions — site styles
   No build step, no external requests. Tokens first, then layout, then blocks. */

/* Palette is taken from the CAV lockup: logo black for type and the footer,
   logo navy as the brand colour, and a light steel tint for anything that has
   to hold contrast on a dark ground. */
:root {
  --ink:        #14161a;
  --ink-soft:   #414750;
  --ink-mute:   #6d747e;
  --paper:      #ffffff;
  --paper-alt:  #f4f6f9;
  --line:       #e1e5ec;
  --brand:      #1c3f63;
  --brand-dark: #12293f;
  --brand-tint: #e9eef4;
  --accent:     #7ea8d2;
  --focus:      #3d86c9;

  --wrap: 1120px;
  --gap: 1.5rem;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .07);

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

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

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

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -.01em; }
p  { margin: 0 0 1.1em; }
a  { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--brand-dark); }
img, svg { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1.25rem; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--brand); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--gap); min-height: 78px; }

/* The lockup already contains the company name, so the mark is the whole
   brand link — no adjacent text. */
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { display: block; height: 50px; width: auto; }
@media (max-width: 480px) { .brand img { height: 40px; } }

.nav { display: flex; align-items: center; gap: .35rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: .95rem; font-weight: 600;
  padding: .5rem .8rem; border-radius: 7px;
}
.nav a:hover { background: var(--paper-alt); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-tint); }

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

@media (max-width: 800px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; inset: 78px 0 auto; flex-direction: column; align-items: stretch;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: .6rem 1.25rem 1rem; gap: .15rem;
    box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .7rem .8rem; }
  .nav .btn { margin-top: .5rem; text-align: center; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block; font-weight: 650; font-size: .97rem; line-height: 1.2;
  padding: .8rem 1.4rem; border-radius: 8px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, transform .1s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--paper-alt); color: var(--ink); border-color: #cfd6e0; }
.btn-light { background: #fff; color: var(--brand-dark); }
.btn-light:hover { background: #f0f4f9; color: var(--brand-dark); }

/* ---------- sections ---------- */
.section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.section-alt { background: var(--paper-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin-bottom: 2.75rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.08rem; margin-bottom: 0; }

.eyebrow {
  display: inline-block; font-size: .76rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .9rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(168deg, #0b0d10 0%, #142c44 58%, #1c3f63 100%);
  color: #d7e0ea; padding: clamp(4rem, 10vw, 7rem) 0;
}
.hero h1 { color: #fff; max-width: 16ch; }
.hero .eyebrow { color: #8fb6e0; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero p.lead { color: #c3d2e4; max-width: 46ch; font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.hero-card {
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 14px; padding: 1.75rem;
}
.hero-card h2 { color: #fff; font-size: 1.15rem; margin-bottom: 1.1rem; }
.hero-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; }
.hero-card li { display: flex; gap: .7rem; align-items: flex-start; font-size: .97rem; color: #cfdcea; }
.hero-card li svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--accent); }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } }

/* ---------- cards ---------- */
.grid { display: grid; gap: var(--gap); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .5rem; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 9px; background: var(--brand-tint); color: var(--brand);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card-icon svg { width: 22px; height: 22px; }

/* ---------- numbered steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.6rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-weight: 700; font-size: .95rem; color: var(--brand);
  background: var(--brand-tint); width: 2.6rem; height: 2.6rem; border-radius: 50%;
  display: grid; place-items: center;
}
.steps h3 { margin-bottom: .3rem; }
.steps p { margin-bottom: 0; }

/* ---------- callout / cta ---------- */
.cta { background: var(--brand-dark); color: #cfdcea; text-align: center; padding: clamp(3rem, 7vw, 4.5rem) 0; }
.cta h2 { color: #fff; }
.cta p { max-width: 48ch; margin-inline: auto; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.75rem; }

.note {
  border-left: 3px solid var(--brand); background: var(--brand-tint); padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0; font-size: .95rem;
}
.note p:last-child { margin-bottom: 0; }

/* ---------- prose / contact ---------- */
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: start; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

.detail-list { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.1rem; }
.detail-list li { display: flex; gap: .9rem; align-items: flex-start; }
.detail-list svg { width: 20px; height: 20px; flex: none; margin-top: 4px; color: var(--brand); }
.detail-list strong { display: block; color: var(--ink); font-size: .82rem; text-transform: uppercase; letter-spacing: .07em; }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 650; font-size: .9rem; color: var(--ink); }
.field input, .field textarea, .field select {
  font: inherit; font-size: .97rem; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line); border-radius: 8px; padding: .7rem .85rem; width: 100%;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--brand); outline: 2px solid var(--brand-tint); outline-offset: 0; }
.field textarea { min-height: 8rem; resize: vertical; }
.form .btn { justify-self: start; }
.form-note { font-size: .85rem; color: var(--ink-mute); margin: 0; }

/* ---------- footer ---------- */
.site-foot { background: var(--ink); color: #9fb0c4; padding: 3rem 0 2rem; font-size: .93rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--gap); margin-bottom: 2.5rem; }
@media (max-width: 720px) { .foot-grid { grid-template-columns: 1fr; gap: 2rem; } }
.site-foot h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-foot a { color: #9fb0c4; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot .brand { margin-bottom: 1.1rem; }
.site-foot .brand img { height: 54px; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .11); padding-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .75rem; justify-content: space-between; font-size: .85rem; }
.foot-bottom p { margin: 0; }

/* ---------- 404 ---------- */
.center-page { min-height: 62vh; display: grid; place-items: center; text-align: center; padding: 4rem 0; }
.center-page .btn + .btn { margin-left: .5rem; }
.actions-spaced { margin-top: 1.75rem; }
.foot-bottom-bare { border-top: none; padding-top: 0; }

/* ---------- utilities ----------
   These exist so no page needs an inline style attribute: the CSP in
   public/_headers sets `style-src 'self'`, which blocks inline styles. */

/* Ghost button sitting on a dark ground (hero / CTA bands). */
.btn-ghost-invert { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn-ghost-invert:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .5); }

/* Two-up feature row: vertically centred with a wider gutter than .grid-2. */
.grid-feature { align-items: center; gap: clamp(2rem, 5vw, 4rem); }

/* Bulleted list inside a card, tightened up. */
.list-plain { margin: 0; padding-left: 1.2rem; display: grid; gap: .6rem; }

/* A tinted band that continues straight on from the section above it. */
.section-flush { padding-top: 0; border-top: none; }
.section-flush > .wrap { padding-top: clamp(3.5rem, 8vw, 6rem); }

.mt-lg { margin-top: 2.5rem; }
