/* Velocity Partners — site styles.
   Brand tokens, type styles, buttons and section styles 1–3 are taken
   unchanged from velocity-partners-theme.html. Additions below are only
   the layout pieces the pages need (cards, tables, articles, FAQ, nav). */
:root {
  /* Brand colors */
  --vp-navy: #0C1A2A;
  --vp-navy-2: #14293F;
  --vp-ink: #1B2A3A;
  --vp-slate: #46586B;
  --vp-light: #F3F6FA;
  --vp-white: #FFFFFF;
  --vp-amber: #E8A33D;
  --vp-amber-light: #F0B95C;
  --vp-amber-dark: #8A5A0E;
  --vp-blue: #8FB3D9;
  --vp-mist: #C5D5E6;
  --vp-mist-2: #A9BBCD;
  --vp-rule: #E1E7EF;
  --vp-rule-dark: #1E3550;
  /* Fonts */
  --vp-font-heading: "Montserrat", "Open Sans", Arial, sans-serif;
  --vp-font-body: "Lato", "Roboto", Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--vp-white); scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--vp-white);
  color: var(--vp-ink);
  font-family: var(--vp-font-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.5;
}
img { max-width: 100%; height: auto; display: block; }

/* Text styles (Title, Heading, Subheading, Normal text, Small text) */
h1, .title {
  font-family: var(--vp-font-heading);
  font-size: 44px; font-weight: 700; line-height: 1.15;
  color: var(--vp-navy-2); margin: 0 0 20px; text-wrap: balance;
}
h2, .heading {
  font-family: var(--vp-font-heading);
  font-size: 30px; font-weight: 700; line-height: 1.2;
  color: var(--vp-navy-2); margin: 0 0 16px; text-wrap: balance;
}
h3, .subheading {
  font-family: var(--vp-font-heading);
  font-size: 20px; font-weight: 600; line-height: 1.3;
  color: var(--vp-amber-dark); margin: 0 0 12px;
}
p { margin: 0 0 16px; }
small, .small { font-size: 14px; line-height: 1.5; color: var(--vp-slate); }
a { color: var(--vp-amber-dark); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: #5E3D08; }
a:focus-visible, .button:focus-visible, summary:focus-visible { outline: 2px solid var(--vp-amber); outline-offset: 3px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--vp-rule); margin: 32px 0; }

/* Buttons */
.button, button {
  display: inline-block; font-family: var(--vp-font-body); font-size: 17px; font-weight: 700;
  background: var(--vp-amber); color: var(--vp-navy); border: 2px solid var(--vp-amber);
  padding: 14px 26px; border-radius: 6px; text-decoration: none; cursor: pointer;
}
.button:hover, button:hover { background: var(--vp-amber-light); border-color: var(--vp-amber-light); color: var(--vp-navy); }
.button-outline { background: transparent; color: var(--vp-amber-dark); border-color: var(--vp-amber-dark); }
.button-outline:hover { background: transparent; color: #5E3D08; border-color: #5E3D08; }
.button-text { background: transparent; border-color: transparent; color: var(--vp-amber-dark); padding-left: 0; padding-right: 0; }
.button-text:hover { background: transparent; border-color: transparent; text-decoration: underline; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 8px 0 0; }

/* Layout */
.wrap {
  max-width: 1280px; margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
.narrow { max-width: 760px; }
section { padding: 80px 0; }

/* Section style 1: white */
.style-1 { background: var(--vp-white); }
/* Section style 2: light */
.style-2 { background: var(--vp-light); }
/* Section style 3: dark */
.style-3 { background: var(--vp-navy); color: var(--vp-mist); }
.style-3 h1, .style-3 .title, .style-3 h2, .style-3 .heading { color: var(--vp-white); }
.style-3 h3, .style-3 .subheading { color: var(--vp-amber); }
.style-3 small, .style-3 .small { color: var(--vp-mist-2); }
.style-3 a { color: var(--vp-amber-light); }
.style-3 .button:not(.button-outline):not(.button-text) { color: var(--vp-navy); }
.style-3 hr { border-top-color: var(--vp-rule-dark); }
.style-3 .button-outline { color: var(--vp-amber-light); border-color: var(--vp-amber-light); }
.style-3 .button-text { color: var(--vp-amber-light); }

/* Navigation */
header.nav { background: var(--vp-navy); border-bottom: 1px solid var(--vp-rule-dark); position: sticky; top: 0; z-index: 20; }
header.nav .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--vp-white); text-decoration: none; font-family: var(--vp-font-heading); font-weight: 700; font-size: 18px; }
.brand:hover { color: var(--vp-white); }
.brand img { width: 40px; height: 40px; }
nav ul { display: flex; flex-wrap: wrap; gap: 8px 24px; list-style: none; margin: 0; padding: 0; align-items: center; }
nav a { color: var(--vp-white); text-decoration: none; font-size: 16px; }
nav a:hover { color: var(--vp-amber-light); }
nav a[aria-current="page"] { border-bottom: 2px solid var(--vp-amber); padding-bottom: 4px; }
nav .nav-cta { background: var(--vp-amber); color: var(--vp-navy); font-weight: 700; padding: 8px 14px; border-radius: 6px; }
nav .nav-cta:hover { background: var(--vp-amber-light); color: var(--vp-navy); }
@media (max-width: 900px) { nav .nav-cta { display: none; } }

/* Components */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--vp-white); border: 1px solid var(--vp-rule); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; min-width: 0; }
.card img { width: 72px; height: 72px; border-radius: 14px; margin-bottom: 18px; }
.card h3 a { color: inherit; text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.card .more { margin-top: auto; font-weight: 700; }
.stat { font-family: var(--vp-font-heading); font-size: 34px; font-weight: 700; color: var(--vp-navy-2); margin: 0 0 4px; }
.proof .small { margin: 0; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--vp-rule); vertical-align: top; }
th { color: var(--vp-navy-2); }
.table-box { overflow-x: auto; }
.table-box table { min-width: 640px; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 32px; } }
.ticks { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 22px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 2px; background: var(--vp-amber); transform: rotate(45deg); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.steps li { border-top: 2px solid var(--vp-amber); padding-top: 16px; min-width: 0; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.pill { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--vp-amber-dark); margin: 0 0 12px; }
.style-3 .pill { color: var(--vp-amber); }

/* Homepage hero with headshot */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: center; }
.hero-grid > div { min-width: 0; }
.headshot { margin: 0; }
.headshot img { width: 100%; border-radius: 12px; border: 1px solid var(--vp-rule-dark); }
.headshot figcaption { margin-top: 10px; font-size: 14px; color: var(--vp-mist-2); }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .headshot { max-width: 150px; order: -1; } .headshot figcaption { display: none; }
}
.about-photo { width: 100%; max-width: 360px; border-radius: 12px; margin-bottom: 32px; }

/* Page header (service pages and inner pages) */
.page-head .wrap { display: flex; align-items: center; gap: 32px; }
.page-head .wrap > div { min-width: 0; }
.page-head img.pillar { width: 140px; height: 140px; border-radius: 22px; flex: none; }
.page-head p.lede { font-size: 19px; max-width: 760px; margin-bottom: 0; }
@media (max-width: 700px) { .page-head .wrap { flex-direction: column; align-items: flex-start; gap: 20px; } .page-head img.pillar { width: 96px; height: 96px; } }
.crumb { font-size: 14px; margin: 0 0 12px; }
.crumb a { color: var(--vp-mist-2); }

/* Banners and figures */
.banner { background: var(--vp-navy); }
.banner img { width: 100%; max-width: 1280px; margin: 0 auto; }
figure { margin: 32px 0; }
figure img { border-radius: 12px; width: 100%; }

/* Articles */
.article p, .article li { font-size: 18px; line-height: 1.65; }
.article h2 { margin-top: 40px; }
.article ul.ticks { margin-bottom: 24px; }
.next { border-top: 1px solid var(--vp-rule); margin-top: 40px; padding-top: 24px; font-weight: 700; }
.post-list { display: grid; gap: 24px; }
.post { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; align-items: center; background: var(--vp-white); border: 1px solid var(--vp-rule); border-radius: 12px; padding: 20px; }
.post img { border-radius: 8px; }
.post h3 { margin-bottom: 8px; }
.post h3 a { color: var(--vp-navy-2); text-decoration: none; }
.post h3 a:hover { text-decoration: underline; }
.post p { margin: 0; }
@media (max-width: 700px) { .post { grid-template-columns: 1fr; } }

/* Results cases */
.case { background: var(--vp-white); border: 1px solid var(--vp-rule); border-radius: 12px; padding: 28px; min-width: 0; }
.case dl { margin: 0; display: grid; gap: 14px; }
.case dt { font-family: var(--vp-font-heading); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--vp-slate); }
.case dd { margin: 4px 0 0; }
.case .result dd { color: var(--vp-navy-2); font-weight: 700; }

/* FAQ */
details { border-bottom: 1px solid var(--vp-rule); padding: 16px 0; }
details summary { cursor: pointer; font-family: var(--vp-font-heading); font-weight: 600; font-size: 18px; color: var(--vp-navy-2); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; color: var(--vp-amber-dark); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { margin: 12px 0 0; }

footer { background: #081320; color: var(--vp-mist-2); font-size: 14px; padding: 28px 0; }
footer a { color: var(--vp-mist); }

@media (max-width: 640px) {
  h1, .title { font-size: 34px; }
  h2, .heading { font-size: 26px; }
  section { padding: 56px 0; }
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  header.nav { position: static; }
}
