:root {
  --brand:       #000052;   /* deep navy — primary */
  --brand-hover: #00008F;
  --brand-light: #262680;

  --ink:         #0F172A;
  --muted:       #475569;

  --accent:      #6E0096;   /* purple — links, emphasis */
  --gold:        #98854C;   /* logo, hairlines, decorative */
  --gold-deep:   #6E5E32;   /* gold-as-text */

  --line:        #E2E8F0;
  --bg:          #F5F5F5;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: #fff;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 980px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: 'Cormorant Garamond', serif; font-weight: 500; }
a { color: inherit; }

/* ---------- Header ---------- */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav       { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.logo      { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo img  { display: block; height: 34px; width: auto; }
.logo-word { font-family: 'Jost', sans-serif; font-size: 26px; font-weight: 600; letter-spacing: .01em; color: var(--gold); }
.nav-links a        { color: var(--muted); text-decoration: none; font-size: 14px; margin-left: 22px; letter-spacing: .04em; }
.nav-links a.active { color: var(--ink); border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.nav-toggle         { display: none; }

/* ---------- Hero / page heads ---------- */
.hero { padding: 88px 0 60px; }
.eyebrow    { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.hero h1    { font-size: clamp(34px, 5.5vw, 56px); line-height: 1.15; max-width: 14em; }
.hero .lede { margin-top: 22px; max-width: none; font-size: 19px; color: var(--muted); }
.hero-band { margin: 0 0 8px; }
.hero-band img { display: block; width: 100%; height: auto; }
.cta { display: inline-block; margin-top: 32px; border-bottom: 1px solid var(--accent); padding-bottom: 2px; text-decoration: none; font-size: 16px; }
.cta:hover { color: var(--accent); }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { color: var(--accent); }

.home-section { padding: 40px 0; }
.hero { padding: 64px 0 40px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 32px; }
.page-title { padding: 64px 0 8px; }
.page-title h1 { font-size: clamp(32px, 5vw, 46px); color: var(--gold); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card { background: var(--bg); border: 1px solid var(--line); padding: 30px 26px; }
.card:hover { border-color: var(--accent); }
.card h3 { font-size: 23px; margin-bottom: 8px; }
.card p  { font-size: 15px; color: var(--muted); }

.home-services-grid { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .home-services-grid { grid-template-columns: repeat(2, 1fr); }
}

.prose { max-width: none; }
.prose h3 { font-size: 24px; margin: 32px 0 8px; }
.prose p { color: var(--muted); margin-bottom: 14px; }
.prose ul { color: var(--muted); margin: 0 0 14px 20px; }

.checklist { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px 40px; }
.checklist li { padding-left: 18px; position: relative; color: var(--muted); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 1px; background: var(--accent); }
.checklist li strong { display: block; color: var(--ink); font-weight: 400; }

/* ---------- Home ---------- */
.hero-band { margin: 0; }
.hero-band img { display: block; width: 100%; height: auto; }
.home-services { list-style: none; }
.home-services li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.home-services li:first-child { border-top: 1px solid var(--line); }
.home-services a { color: var(--ink); text-decoration: none; }
.home-services a:hover strong { color: var(--accent); }
.home-services strong { font-weight: 500; }

/* ---------- Services ---------- */
.services-list { padding: 20px 0 72px; }
details.service { border-top: 1px solid var(--line); scroll-margin-top: 96px; }
details.service:last-of-type { border-bottom: 1px solid var(--line); }
details.service summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; cursor: pointer; padding: 16px 0;}
details.service summary::-webkit-details-marker { display: none; }
.service-head { flex: 1 1 auto; }
details.service summary h2 { font-size: 20px; font-weight: 500;  margin: 0; transition: color .18s ease;}
.service-teaser { font-size: 14px; line-height: 1.45; color: var(--muted); margin-top: 3px;}
details.service summary::after { content: "+"; flex: 0 0 auto; font-family: 'Cormorant Garamond', serif; font-size: 26px; line-height: 1; color: var(--gold);}
details.service[open] summary::after { content: "–"; }
details.service[open] summary { padding: 30px 0 18px; }
details.service[open] summary h2 { font-size: clamp(28px, 4vw, 38px); color: var(--accent);}
details.service[open] .service-teaser { display: none; }
.service-body { padding: 0 0 34px; }
.service-engagement { border-left: 2px solid var(--gold); padding-left: 20px; color: var(--muted); font-size: 15px;}
.page-title { padding: 48px 0 4px; }
.page-title h1 { font-size: clamp(28px, 4vw, 38px); }
.lede { font-size: 16px; color: var(--muted); max-width: none; margin-top: 12px;}


@media (max-width: 520px) {
  details.service summary { padding: 12px 0; }
  details.service[open] summary { padding: 22px 0 14px; }
}

/* ---------- Contact ---------- */
.contact-list { list-style: none; padding: 0; }
.contact-list li { margin: 0.75rem 0; }
.contact-list a { font-weight: 400; color: var(--brand); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact-list a:hover { color: var(--brand-hover); border-color: var(--brand-hover); }
.contact-list li { margin: 0.75rem 0; color: var(--muted); }

/* ---------- Track Record ---------- */
details.case { border-bottom: 1px solid var(--line); }
.track-figure { margin: 34px 0 0; }
.track-figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line);   /* mounts the white gutters as an album plate */
  padding: 10px;                   /* breathing room inside the frame */
  background: #fff;
}
.track-caption {
  margin-top: 12px; font-size: 14px; color: var(--muted);
  border-left: 2px solid var(--gold); padding-left: 20px;
}
.case-close { padding: 34px 0 10px; }

/* ---------- About ---------- */
.portrait-figure { float: right; width: 210px; margin: 6px 0 20px 28px; }
.portrait-figure img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line);
  padding: 8px; background: #fff;
}
.about-section::after { content: ""; display: table; clear: both; }

/* ---------- Digital Tools ---------- */
.tools-section { padding-top: 28px; }
.tool-section { padding: 36px 0 44px; border-top: 1px solid var(--line); }
.tool-section:first-of-type { border-top: none; padding-top: 0; }
.tool-section h2 { font-size: 28px; margin-bottom: 10px; line-height: 1.25; }
.tool-section .cards { margin: 22px 0 8px; }
.card h3 { margin: 0 0 6px; line-height: 1.3; }
.card ul { margin: 0; list-style: none; color: var(--muted); font-size: 15px; }
.card ul li { padding-left: 16px; position: relative; margin: 6px 0; }
.card ul li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 7px; height: 1px; background: var(--gold);
}

/* ---------- Legal ---------- */
.legal-text h3 { font-size: 19px; margin: 26px 0 6px; color: var(--ink); }
.legal-text p  { font-size: 15px; margin-bottom: 12px; }

.legal-page h2    { color: var(--accent, #98854C); font-family: 'Segoe UI', Arial, sans-serif; font-size: 1.3rem; margin: 1.3rem 0 0.2rem 0;}
.legal-page h2.numbered { counter-increment: clause;}
.legal-page h2.numbered::before {    content: counter(clause) ". ";}
.legal-page { counter-reset: clause;}
.legal-page p { margin-bottom: 1rem; max-width: none;}

/* ---------- 404 ---------- */
.error-panel { display: flex; align-items: center; justify-content: center; gap: 28px; margin: 0 auto; }
.error-num { font-family: 'Cormorant Garamond', serif; font-size: clamp(72px, 14vw, 140px); font-weight: 500; line-height: 1; color: var(--ink); }
.error-divider { width: 1px; height: clamp(48px, 8vw, 84px); background: var(--gold); }
.error-msg { font-size: 19px; color: var(--muted); text-align: left; }
.error-links { margin-top: 56px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 32px; }
.error-links a { font-size: 14px; color: var(--muted); text-decoration: none; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line); padding-bottom: 3px; }
.error-links a:hover { color: var(--ink); border-bottom-color: var(--gold); }

@media (max-width: 520px) {
  .error-panel { flex-direction: column; gap: 14px; }
  .error-divider { width: clamp(48px, 12vw, 84px); height: 1px; }
  .error-msg { text-align: center; }
}

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); margin-top: 12px; background: var(--bg); }
footer .wrap { padding-top: 18px; padding-bottom: 0; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 40px; }
.footer-brand img { display: block; height: 88px; width: auto; margin-bottom: 6px; }
.footer-tag { font-size: 15px; color: var(--muted); line-height: 1.6; max-width: 320px; margin-bottom: 6px; }
.footer-contact { text-align: right; padding-bottom: 6px; }
.footer-mail { font-size: 17px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--gold); padding-bottom: 2px; }
.footer-mail:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer-loc { margin-top: 10px; font-size: 14px; color: var(--muted); }
footer .meta { margin-top: 0; padding: 4px 0 40px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; font-size: 13px; color: var(--muted); gap: 12px; }
footer .meta a { text-decoration: none; }
footer .meta a:hover { color: var(--accent); }

/* ---------- Print (global) ---------------------------------------------- */
@media print {
  /* Chrome: hide screen nav; header/footer stay, in flow */
  .nav-toggle, .cta { display: none !important; }
  header { position: static; margin: 0 0 1.5rem 0; padding-bottom: 0.5rem; border-bottom: 0.5pt solid #999; }
  footer { position: static; margin-top: 2.5rem;   padding-top: 0.4rem;    border-top: 0.5pt solid #999; font-size: 7pt; color: #666; }

  body { background: #fff; color: #000; }
  .hero { padding: 0 0 24px; }
  .section { padding: 24px 0; border-top: 1px solid #ccc; }
  .card { border-color: #ccc; background: #fff; break-inside: avoid; }
  a { color: inherit; text-decoration: none; }
  .page-break { page-break-before: always; }

  h1, h2, h3 { break-after: avoid; }
  p { orphans: 2; widows: 2; }
  table, figure { break-inside: avoid; }

  /* Service accordions: forced open by JS beforeprint, styled for paper */
  details.service summary { display: block; padding: 18px 0 6px; cursor: default; }
  details.service summary::after { display: none; }
  details.service summary h2 { font-size: 14pt; color: var(--ink); }
  .service-teaser { display: block !important; font-size: 11pt; }
  .service-body { padding: 4px 0 22px; }
  details.service { break-inside: auto; }   /* long services may span pages */

  /* Track-record figures */
  .track-figure { margin: 18px 0 4px; break-inside: avoid; }
}

/* Footnote on every page */
@page {
  margin: 2.2cm 1.8cm 2.2cm 2.5cm;
  @bottom-center {
    content: "© 2026 ACVEX Advisory · www.acvex.com · October 2026";
    font-size: 7pt;
    color: #666;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav-toggle {
    display: block; background: none; border: none;
    font-size: 24px; cursor: pointer; color: var(--ink);
  }
  .nav-links { display: none; flex-direction: column; padding-bottom: 16px; }
  .nav-links.open { display: flex; }
  .nav-links a { margin: 6px 0; }
  .hero { padding-top: 56px; }
}