/* CAMV & Associates — site styles
   Layout: establishment-finance — navy hero band, gold hairline accents, hairline-bordered cards.
   Colours are defined as tokens and themed for light/dark. */
:root {
  --bg: #f3f5f8;
  --surface: #ffffff;
  --surface-2: #eef1f6;
  --fg: #0f1d33;
  --muted: #55637a;
  --line: #dde3ec;
  --brand: #10233f;
  --brand-2: #17355e;
  --accent: #a9823f;
  --accent-ink: #8a6a31;
  --accent-soft: #f3ead9;
  --ok: #1f7a53;
  --display: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --body: "Public Sans", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --maxw: 1140px;
  --r: 14px;
  --shadow: 0 1px 2px rgba(16,35,63,.05), 0 18px 44px -28px rgba(16,35,63,.35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a1120; --surface: #111b2e; --surface-2: #0e1829; --fg: #eaf0f8;
    --muted: #9fadc4; --line: #223247; --brand: #0c1626; --brand-2: #16294a;
    --accent: #d3a965; --accent-ink: #e2bd82; --accent-soft: #1b253a; --ok: #52c08b;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 48px -28px rgba(0,0,0,.7); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a1120; --surface: #111b2e; --surface-2: #0e1829; --fg: #eaf0f8;
  --muted: #9fadc4; --line: #223247; --brand: #0c1626; --brand-2: #16294a;
  --accent: #d3a965; --accent-ink: #e2bd82; --accent-soft: #1b253a; --ok: #52c08b;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 20px 48px -28px rgba(0,0,0,.7); color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--body); font-weight: 600; font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent-ink); display: inline-flex; align-items: center; gap: .6em; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); display: inline-block; }
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.lede { color: var(--muted); font-size: 1.08rem; max-width: 60ch; }
.btn { font-family: var(--body); font-weight: 600; font-size: .95rem; border-radius: 999px; padding: .8em 1.5em; display: inline-flex; align-items: center; gap: .5em; cursor: pointer; border: 1px solid transparent; text-decoration: none; transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(169,130,63,.7); }
.btn-light { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.btn-light:hover { background: rgba(255,255,255,.18); transform: translateY(-2px); }

header.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 1.5rem; height: 70px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--display); font-weight: 700; font-size: 1.22rem; text-decoration: none; color: var(--fg); letter-spacing: -0.01em; white-space: nowrap; }
.brand .mark { height: 34px; min-width: 34px; padding: 0 .5em; border-radius: 8px; background: linear-gradient(145deg, var(--brand-2), var(--brand)); color: #fff; display: grid; place-items: center; font-size: .9rem; letter-spacing: .04em; box-shadow: inset 0 0 0 1px rgba(169,130,63,.5); flex: none; }
.nav-links { display: flex; gap: 1.6rem; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: .92rem; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.icon-btn { background: transparent; border: 1px solid var(--line); border-radius: 9px; width: 38px; height: 38px; display: grid; place-items: center; cursor: pointer; color: var(--fg); }
.icon-btn:hover { border-color: var(--accent); }
.menu-toggle { display: none; }

.hero { position: relative; background: radial-gradient(120% 120% at 85% 0%, var(--brand-2), var(--brand) 60%); color: #f2f6fc; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 46px 46px; mask-image: radial-gradient(90% 80% at 80% 10%, #000, transparent 75%); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; padding-block: clamp(3.5rem, 7vw, 6rem); }
.hero .eyebrow { color: var(--accent); }
.hero .eyebrow::before { background: var(--accent); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); color: #fff; margin-top: 1.1rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero p.sub { margin-top: 1.3rem; color: #c3d0e4; font-size: 1.1rem; max-width: 48ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.hero-micro { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 1.2rem; color: #9fb0ca; font-size: .85rem; }
.hero-micro span { display: inline-flex; align-items: center; gap: .45em; }
.hero-micro svg { color: var(--accent); flex: none; }

.card-quote { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: var(--r); padding: 1.6rem; backdrop-filter: blur(6px); }
.card-quote .tag { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.card-quote h3 { color: #fff; font-size: 1.5rem; margin-top: .5rem; }
.card-quote ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .7rem; }
.card-quote li { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; color: #d4deec; }
.card-quote li svg { color: var(--accent); flex: none; margin-top: 3px; }
.card-quote .foot { margin-top: 1.3rem; padding-top: 1.1rem; border-top: 1px solid rgba(255,255,255,.14); font-size: .82rem; color: #9fb0ca; }

.stats { background: var(--surface); border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 2rem; }
.stat { text-align: center; padding: .4rem; }
.stat .n { font-family: var(--display); font-size: clamp(1.8rem, 3.2vw, 2.5rem); font-weight: 700; color: var(--fg); font-variant-numeric: tabular-nums; }
.stat .n span { color: var(--accent); }
.stat .l { font-size: .82rem; color: var(--muted); margin-top: .2rem; }
.stats .stat + .stat { border-left: 1px solid var(--line); }

.section-head { max-width: 62ch; }
.section-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin-top: .9rem; }
.section-head p { margin-top: 1rem; }

.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.about-copy p + p { margin-top: 1rem; }
.about-copy .sig { margin-top: 1.5rem; font-family: var(--display); font-style: italic; color: var(--accent-ink); font-size: 1.05rem; }
.cred-list { display: grid; gap: .9rem; }
.cred { display: flex; gap: .9rem; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.15rem; box-shadow: var(--shadow); }
.cred svg { color: var(--accent); flex: none; margin-top: 2px; }
.cred b { display: block; font-size: .96rem; }
.cred span { font-size: .86rem; color: var(--muted); }

#services { background: var(--surface-2); border-block: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; margin-top: 2.6rem; }
.svc { grid-column: span 2; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; transition: transform .18s ease, border-color .18s, box-shadow .18s; }
.svc:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: var(--shadow); }
.svc .ico { width: 44px; height: 44px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); display: grid; place-items: center; margin-bottom: 1.1rem; }
.svc h3 { font-size: 1.22rem; }
.svc p { color: var(--muted); font-size: .92rem; margin-top: .55rem; }
.svc ul { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.svc li { font-size: .76rem; color: var(--accent-ink); background: var(--accent-soft); border-radius: 6px; padding: .22em .6em; }

.proc { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 2.6rem; counter-reset: step; }
.step { position: relative; padding-top: 1.2rem; }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--display); font-size: 1.1rem; font-weight: 700; color: var(--accent); display: block; }
.step::after { content: ""; position: absolute; top: 1.55rem; left: 2.4rem; right: -1.2rem; height: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.1rem; margin-top: .7rem; }
.step p { color: var(--muted); font-size: .88rem; margin-top: .4rem; }

.creds { background: var(--brand); color: #e9eef6; }
.creds .wrap { padding-block: clamp(2.6rem,5vw,3.6rem); }
.creds-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; }
.creds h2 { color: #fff; font-size: clamp(1.6rem,3vw,2.3rem); max-width: 18ch; }
.creds-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); overflow: hidden; margin-top: 2.2rem; }
.creds-grid div { background: var(--brand); padding: 1.4rem; }
.creds-grid b { font-family: var(--display); font-size: 1.05rem; color: var(--accent); display: block; }
.creds-grid p { font-size: .84rem; color: #a9b8d0; margin-top: .35rem; }

.sectors { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.sectors span { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: .5em 1.1em; font-size: .88rem; color: var(--fg); }

.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.2rem; margin-top: 2.6rem; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.5rem; }
.member .av { width: 58px; height: 58px; border-radius: 50%; background: linear-gradient(145deg, var(--brand-2), var(--brand)); color: var(--accent); display: grid; place-items: center; font-family: var(--display); font-size: 1.3rem; font-weight: 700; overflow: hidden; }
.member .av img { width: 100%; height: 100%; object-fit: cover; }
.member h3 { font-size: 1.12rem; margin-top: 1rem; }
.member .role { font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-top: .25rem; }
.member p { font-size: .88rem; color: var(--muted); margin-top: .7rem; }

#contact { background: var(--surface-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem,5vw,3.5rem); margin-top: 2.4rem; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .82rem; font-weight: 600; color: var(--fg); }
.field input, .field select, .field textarea { font-family: var(--body); font-size: .95rem; padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--fg); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-note { font-size: .78rem; color: var(--muted); margin-top: .3rem; }
.form-ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border: 1px solid var(--ok); color: var(--ok); border-radius: 10px; padding: .9rem 1rem; font-size: .9rem; font-weight: 500; margin-top: 1rem; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1.6rem; box-shadow: var(--shadow); }
.info-row { display: flex; gap: .9rem; align-items: flex-start; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.info-row:last-child { border-bottom: 0; padding-bottom: 0; }
.info-row:first-of-type { padding-top: 0; }
.info-row svg { color: var(--accent); flex: none; margin-top: 3px; }
.info-row .k { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.info-row .v { font-size: .98rem; font-weight: 500; margin-top: .15rem; word-break: break-word; }

footer { background: var(--brand); color: #a9b8d0; }
footer .wrap { padding-block: 2.4rem; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem; align-items: center; }
.foot-row .brand { color: #fff; }
.foot-links { display: flex; flex-wrap: wrap; gap: 1.3rem; font-size: .9rem; }
.foot-links a { text-decoration: none; color: #a9b8d0; }
.foot-links a:hover { color: var(--accent); }
.foot-legal { margin-top: 1.6rem; padding-top: 1.3rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .78rem; color: #7f90ad; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; }

.skip { position: absolute; left: -999px; top: 0; background: var(--accent); color: #fff; padding: .6em 1em; border-radius: 0 0 8px 0; z-index: 100; }
.skip:focus { left: 0; }

.reveal { opacity: 0; transform: translateY(14px); }
.reveal.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .6s ease; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 2.2rem; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .svc { grid-column: span 1; }
  .proc { grid-template-columns: repeat(2,1fr); }
  .step::after { display: none; }
  .creds-grid { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-links.open { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: 1rem 20px; gap: 1rem; margin-left: 0; }
  .menu-toggle { display: grid; }
  .stats .wrap { grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
  .stats .stat + .stat { border-left: 0; }
  .stats .stat:nth-child(odd) { border-right: 1px solid var(--line); }
  .svc-grid { grid-template-columns: 1fr; }
  .proc, .creds-grid, .team-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1 1 auto; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } * { scroll-behavior: auto !important; } }
