/* Vanguard Fortis, concept 4: the client's direction. Light ground, serif headings, gold accents, soft white cards. */
:root {
  --bg: #f6f5f2;
  --white: #ffffff;
  --tone: #efede8;
  --ink: #23272f;
  --ink-soft: #4d535c;
  --line: #e4e0d7;
  --gold: #b08d4c;
  --gold-dark: #8f6f35;
  --gold-light: #d9bd80;
  --dark: #1f2a3a;
  --dark-soft: #aab3c0;

  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: 24px;
  --gap: 24px;
  --section: clamp(72px, 7vw, 112px);
  --shadow: 0 10px 30px rgb(31 42 58 / .07), 0 2px 6px rgb(31 42 58 / .04);
  --shadow-hover: 0 16px 40px rgb(31 42 58 / .11), 0 3px 8px rgb(31 42 58 / .05);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 1rem/1.75 var(--sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
p, ul, ol, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--gold); color: var(--white); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 30; background: var(--white); padding: 8px 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 46px; height: 46px; color: var(--gold); flex-shrink: 0; }

/* Buttons: gold, and a thin outline */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: 2px;
  font: 500 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: filter .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-gold {
  color: var(--white); border-color: var(--gold-dark);
  background: linear-gradient(135deg, #9c7a3c 0%, #c9a663 48%, #a98744 100%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .25);
}
.btn-gold:hover { filter: brightness(1.07); box-shadow: inset 0 1px 0 rgb(255 255 255 / .25), 0 6px 16px rgb(143 111 53 / .28); }
.btn-line { color: var(--ink); border-color: var(--ink); background: rgb(255 255 255 / .6); }
.btn-line:hover { background: var(--ink); color: var(--white); }
.btn-small { min-height: 42px; padding: 0 20px; font-size: .75rem; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.actions.center { justify-content: center; }

/* ---------- Header ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: rgb(255 255 255 / .96); box-shadow: 0 1px 0 var(--line); }
.bar-inner { display: flex; align-items: center; gap: 36px; min-height: 84px; }
.brand { margin-right: auto; display: flex; padding: 6px 0; }
.brand img { width: clamp(190px, 18vw, 250px); height: auto; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav > a, .dd-btn {
  font: 500 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink);
  padding: 12px 0; border-bottom: 1px solid transparent; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.nav > a:hover, .dd-btn:hover { color: var(--gold-dark); }
.nav > a[aria-current="page"], .dd-btn.is-current { border-bottom-color: var(--gold); }
.dd { position: relative; }
.dd-btn { background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; padding-right: 18px; position: relative; }
.dd-btn::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 6px; height: 6px; margin-top: -5px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg);
  transition: transform .2s var(--ease), margin-top .2s var(--ease);
}
.dd-menu {
  position: absolute; left: -24px; top: 100%; min-width: 300px; padding: 12px 0; display: grid;
  background: var(--white); box-shadow: var(--shadow-hover); border-top: 2px solid var(--gold);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.dd:hover .dd-menu, .dd-btn[aria-expanded="true"] + .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd:hover .dd-btn::after, .dd-btn[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: -1px; }
.dd-menu a { padding: 11px 24px; text-decoration: none; font-size: .9375rem; transition: background-color .15s, color .15s; }
.dd-menu a:hover, .dd-menu a[aria-current="page"] { background: var(--bg); color: var(--gold-dark); }
.nav-phone { display: none; }

/* ---------- Hero banner with a light wash on the left ---------- */
.hero { position: relative; min-height: clamp(420px, 52vw, 560px); display: flex; align-items: center; overflow: hidden; background: var(--tone); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgb(248 247 244 / .94) 0%, rgb(248 247 244 / .82) 34%, rgb(248 247 244 / .2) 62%, rgb(248 247 244 / 0) 80%);
}
.hero-inner { position: relative; z-index: 2; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font: 600 clamp(2.375rem, 1.5rem + 2.8vw, 4rem)/1.05 var(--serif); color: var(--ink); max-width: 20ch; letter-spacing: -.005em; }
.hero-lead { margin-top: 18px; font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.6; max-width: 40ch; color: var(--ink); }
.hero-home h1 { text-transform: uppercase; letter-spacing: .04em; max-width: none; }
.hero-home .hero-lead { font: 500 clamp(1.375rem, 1.1rem + 1vw, 1.875rem)/1.3 var(--serif); color: var(--gold-dark); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.tone { background: var(--tone); }
.sec-title { text-align: center; margin-bottom: 44px; }
.sec-title h2, .caps-h {
  font: 500 clamp(1.125rem, 1rem + .5vw, 1.375rem)/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink);
}
.sec-title p { margin: 12px auto 0; max-width: 56ch; color: var(--ink-soft); }
.caps-h { margin-bottom: 20px; }
.serif-h { font: 600 clamp(1.875rem, 1.4rem + 1.4vw, 2.625rem)/1.12 var(--serif); }
.lead { font-size: 1.125rem; line-height: 1.7; margin-top: 18px; }
.split > div > p:not(.lead) { margin-top: 14px; color: var(--ink-soft); }
.card-soft { background: var(--white); box-shadow: var(--shadow); }

/* cards with an icon beside the title */
.icards { display: grid; gap: var(--gap); }
.icards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.icards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.icards-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.icard {
  background: var(--white); box-shadow: var(--shadow); padding: 30px 26px 30px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.icard:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.icard-head { display: flex; align-items: center; gap: 14px; }
.icard h3 { font: 600 1.5rem/1.15 var(--serif); }
.icard h3 a { text-decoration: none; }
.icard h3 a:hover { color: var(--gold-dark); }
.icard p { color: var(--ink-soft); font-size: .9375rem; flex: 1; }
.scards .btn { align-self: flex-start; }
.services-first { padding-top: 0; margin-top: -56px; position: relative; z-index: 3; }

/* numbered steps with icons, joined by small arrows */
.steps { list-style: none; padding: 0; display: grid; gap: var(--gap); }
.steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { position: relative; background: var(--white); box-shadow: var(--shadow); padding: 28px 24px; display: grid; gap: 12px; align-content: start; }
.steps li + li::before {
  content: ""; position: absolute; left: calc(-1 * var(--gap) / 2 - 5px); top: 50%; width: 10px; height: 10px; margin-top: -5px;
  border-right: 1.5px solid var(--gold); border-top: 1.5px solid var(--gold); transform: rotate(45deg);
}
.steps .ic { width: 38px; height: 38px; }
.steps h3 { font: 600 1.375rem/1.2 var(--serif); }
.steps .num { color: var(--gold); }
.steps p { color: var(--ink-soft); font-size: .9375rem; }

/* text beside a photograph */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split-top { align-items: start; }
.photo { overflow: hidden; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.photo:hover img { transform: scale(1.03); }
.panel { padding: clamp(28px, 4vw, 44px); }
.panel .serif-h { margin-bottom: 20px; }

/* check lists */
.checks { list-style: none; padding: 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.0625rem; }
.checks .ic { width: 22px; height: 22px; margin-top: 3px; }

/* numbered circle list (management system) */
.numlist { list-style: none; padding: 0; display: grid; gap: 18px; }
.numlist li { display: flex; align-items: center; gap: 18px; font-size: 1.0625rem; }
.circle {
  width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold-dark);
  display: grid; place-items: center; font: 600 1.125rem/1 var(--serif); flex-shrink: 0;
}

/* donut chart */
.donut { padding: 32px; display: flex; align-items: center; gap: 32px; }
.donut svg { width: 200px; height: 200px; transform: rotate(-90deg); flex-shrink: 0; }
.donut figcaption { display: grid; gap: 10px; font-size: .9375rem; }
.donut figcaption span { display: flex; align-items: center; gap: 10px; }
.donut i { width: 14px; height: 14px; border-radius: 2px; display: inline-block; }

/* figures band */
.figures { background: var(--white); padding: 56px 0; box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.figures-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); text-align: center; }
.figures p { color: var(--ink-soft); font-size: .9375rem; letter-spacing: .04em; }
.figures strong { display: block; font: 600 clamp(2.5rem, 2rem + 1.6vw, 3.25rem)/1.1 var(--serif); color: var(--gold-dark); margin-bottom: 6px; letter-spacing: 0; }

/* reference cards */
.pcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.pcard-img { aspect-ratio: 16 / 10; overflow: hidden; }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-body { padding: 28px; display: grid; gap: 12px; justify-items: start; }
.pcard h3 { font: 600 1.75rem/1.15 var(--serif); }
.pcard .meta { font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
.pcard p:not(.meta) { color: var(--ink-soft); }
.narrow-center { max-width: 760px; text-align: center; }

/* contact */
.contact { background: var(--white); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact-list { list-style: none; padding: 0; margin-top: 32px; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .ic { width: 26px; height: 26px; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--gold-dark); }
.form { padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; background: var(--bg); box-shadow: none; }
.field input, .field textarea, .field select {
  width: 100%; font: 400 1rem/1.5 var(--sans); color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 2px; padding: 13px 15px;
  transition: border-color .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field ::placeholder { color: #8a9099; }
.form-error { color: #a12a2a; font-size: .9375rem; }

/* ---------- Footer ---------- */
.foot { background: var(--dark); color: var(--white); padding: 72px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--gap); }
.foot-logo { width: 230px; }
.foot-claim { margin-top: 20px; font: 500 1.375rem/1.3 var(--serif); color: var(--gold-light); max-width: 18ch; }
.foot h2 { font: 500 .8125rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: 18px; }
.foot nav { display: grid; gap: 10px; justify-items: start; align-content: start; }
.foot a { color: var(--dark-soft); text-decoration: none; transition: color .2s var(--ease); }
.foot a:hover { color: var(--white); }
.foot p { color: var(--dark-soft); }
.foot p + p { margin-top: 8px; }
.foot-legal { margin-top: 56px; padding-top: 22px; box-shadow: inset 0 1px 0 rgb(255 255 255 / .1); font-size: .8125rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot-legal p + p { margin-top: 0; }
.foot .credit a { color: var(--gold-light); }
.foot .credit a:hover { color: var(--white); }

/* ---------- Entrances ---------- */
.js [data-rise] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-rise].is-in { opacity: 1; transform: none; }
.js .icard[data-rise].is-in:hover { transform: translateY(-4px); }

/* ---------- Tablet ---------- */
@media (width < 1080px) {
  .nav, .bar .btn-small { display: none; }
  .nav-phone { display: block; position: relative; }
  .nav-phone summary {
    list-style: none; cursor: pointer; min-height: 44px; display: flex; align-items: center; padding: 0 18px;
    font: 500 .8125rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase;
    color: var(--white); background: linear-gradient(135deg, #9c7a3c, #c9a663 48%, #a98744); border-radius: 2px;
  }
  .nav-phone summary::-webkit-details-marker { display: none; }
  .nav-phone nav { position: absolute; right: 0; top: 52px; width: min(86vw, 340px); background: var(--white); padding: 12px 22px; display: grid; box-shadow: var(--shadow-hover); border-top: 2px solid var(--gold); }
  .nav-phone nav a { padding: 11px 0; text-decoration: none; font-weight: 500; }
  .nav-phone nav a.sub { padding: 8px 0 8px 16px; font-weight: 400; }
  .nav-phone-group { padding: 12px 0 4px; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-dark); }
  .icards-4, .steps-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li:nth-child(odd)::before { display: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 40px var(--gap); }
}
@media (width < 960px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
}

/* ---------- Phone ---------- */
@media (width < 720px) {
  :root { --gutter: 20px; }
  .hero { min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgb(248 247 244 / .55), rgb(248 247 244 / .92) 55%); }
  .hero-inner { padding-top: 120px; padding-bottom: 48px; }
  .services-first { margin-top: 0; padding-top: var(--section); }
  .icards-4, .icards-3, .icards-2, .steps-4, .steps-3, .split, .contact-grid, .pcards, .figures-grid { grid-template-columns: 1fr; }
  .steps li::before { display: none; }
  .donut { flex-direction: column; }
  .actions .btn { flex: 1 1 100%; }
  .foot-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-rise] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
