/* ==========================================================================
   Axia Advisory — site styles
   Plain CSS, mobile-first, no framework. One stylesheet, cached across pages.
   ========================================================================== */

:root {
  --blue:      #407B95;  /* primary brand (current site #427E98, nudged darker so white text passes WCAG AA) */
  --blue-deep: #2F6378;  /* links, hover on blue */
  --navy:      #1E4D5D;  /* dark accent: buttons, headings, footer */
  --navy-deep: #153A47;  /* button hover */
  --wheat:     #D9B76A;  /* small decorative accent only, never text on light */
  --mist:      #F6F6F6;  /* alternating section background */
  --tint:      #EAF1F4;  /* soft blue tint for cards */
  --ink:       #1B2326;  /* body text */
  --ink-soft:  #4D5B61;  /* secondary text (7:1 on white) */
  --rule:      #DCE3E6;  /* borders */
  --white:     #FFFFFF;

  --font: Figtree, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --measure: 64ch;
  --pad: clamp(20px, 5vw, 40px);
  --radius: 10px;
}

/* --- font: Figtree, self-hosted (latin subset, variable weight 400-800, SIL OFL) --- */
@font-face {
  font-family: Figtree; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/fonts/figtree-latin.woff2) format("woff2");
}

/* --- reset ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--wheat); outline-offset: 2px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* --- typography -------------------------------------------------------- */
h1, h2, h3 { color: var(--navy); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; overflow-wrap: break-word; }
h1 { font-size: clamp(2.2rem, 5.6vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 2.4vw, 1.35rem); font-weight: 700; letter-spacing: -0.01em; }
p { max-width: var(--measure); }
.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.6; color: var(--ink-soft); max-width: 58ch; }
/* short wheat rule above section headings */
.kicker::before {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 2px;
  background: var(--wheat); margin-bottom: 1.1rem;
}

/* --- layout ------------------------------------------------------------ */
.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--pad); }
.narrow { max-width: 820px; }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--mist { background: var(--mist); }
.stack > * + * { margin-top: 1.1rem; }
.section-head { margin-bottom: clamp(28px, 4vw, 48px); }
.section-head > * + * { margin-top: 0.9rem; }

/* --- skip link --------------------------------------------------------- */
.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip:focus { left: 0; color: var(--white); }

/* --- header ------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(1.4) blur(8px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }
@media (max-width: 860px) { .site-header .wrap { min-height: 76px; } .brand img { height: 48px; } }
.nav { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 34px); }
.nav a:not(.btn) {
  color: var(--ink); text-decoration: none; font-weight: 600; font-size: 1rem;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:not(.btn):hover { color: var(--blue-deep); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--blue); }
.nav .btn { padding: 11px 20px; }
.menu-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--navy);
}
.menu-toggle svg { width: 26px; height: 26px; }

@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); border-bottom: 1px solid var(--rule);
    padding: 8px var(--pad) 22px; box-shadow: 0 14px 24px rgba(20, 50, 60, .08);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--rule); font-size: 1.05rem; }
  .nav a[aria-current="page"] { border-bottom-color: var(--rule); color: var(--blue-deep); }
  .nav .btn { margin-top: 18px; text-align: center; }
}

/* --- buttons ----------------------------------------------------------- */
.btn {
  display: inline-block; font-family: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  padding: 15px 28px; border-radius: 8px; cursor: pointer; text-decoration: none;
  border: 2px solid var(--navy); transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); border-color: var(--navy-deep); color: var(--white); }
.btn-secondary { background: transparent; color: var(--navy); }
.btn-secondary:hover { background: var(--navy); color: var(--white); }
.btn-light { background: var(--white); border-color: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--tint); border-color: var(--tint); color: var(--navy); }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .85); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 2rem; }

/* --- home hero --------------------------------------------------------- */
.hero { position: relative; color: var(--white); background: var(--navy); overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero picture img { object-position: 60% 60%; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16, 42, 52, .9) 0%, rgba(16, 42, 52, .72) 45%, rgba(16, 42, 52, .25) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(96px, 16vw, 190px) clamp(80px, 12vw, 150px); }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero p { color: rgba(255, 255, 255, .92); font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.6; max-width: 56ch; margin-top: 1.4rem; }
.hero p + p { margin-top: .8rem; }
@media (max-width: 640px) {
  .hero::after { background: linear-gradient(180deg, rgba(16, 42, 52, .78), rgba(16, 42, 52, .9)); }
}

/* --- inner page hero --------------------------------------------------- */
.page-hero { background: var(--blue); color: var(--white); }
.page-hero .wrap { padding-block: clamp(64px, 9vw, 112px) clamp(56px, 8vw, 96px); }
.page-hero h1 { color: var(--white); }
.page-hero h1::before {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 2px; background: var(--wheat); margin-bottom: 1.3rem;
}
.page-hero p { color: var(--white); font-size: clamp(1.1rem, 2.2vw, 1.3rem); line-height: 1.6; max-width: 60ch; margin-top: 1.2rem; }
.photo-band img { width: 100%; height: clamp(200px, 30vw, 380px); object-fit: cover; }

/* --- cards & grids ----------------------------------------------------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 28px); }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}
.card {
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
}
.section--mist .card { border-color: transparent; box-shadow: 0 1px 2px rgba(20, 50, 60, .05), 0 8px 24px rgba(20, 50, 60, .05); }
.card h3 { margin-bottom: .6rem; }
.card p { color: var(--ink-soft); }
.card--accent { border-top: 4px solid var(--blue); }
.num {
  display: inline-block; font-weight: 800; font-size: .95rem; color: var(--blue-deep);
  letter-spacing: .06em; margin-bottom: .8rem;
}

/* --- services overview (home: Four ways we help) ---------------------- */
.section--navy { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.section--navy::before {
  /* faint diagonal sweep echoing the stroke through the logo's A */
  content: ""; position: absolute; right: -18%; top: -40%; width: 70%; height: 180%;
  background: linear-gradient(115deg, transparent 49.6%, rgba(255, 255, 255, .05) 50%, transparent 62%);
  pointer-events: none;
}
.section--navy .wrap { position: relative; }
.section--navy h2 { color: var(--white); }
.svc-grid { display: grid; gap: clamp(16px, 2vw, 24px); }
@media (min-width: 680px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc {
  position: relative; display: flex; flex-direction: column; gap: .7rem;
  background: var(--white); color: var(--ink); text-decoration: none;
  border-radius: 12px; padding: 28px 26px 60px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  border-radius: 0 0 12px 12px; background: var(--wheat); transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.svc:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, .26); color: var(--ink); }
.svc:hover::after { transform: scaleX(1); }
.svc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.svc-icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: var(--tint); color: var(--blue-deep);
}
.svc-icon svg { width: 28px; height: 28px; }
.svc-num { font-weight: 800; font-size: 1.9rem; color: #C9D6DC; letter-spacing: -.02em; line-height: 1; }
.svc h3 { color: var(--navy); }
.svc p { color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.svc-arrow {
  position: absolute; left: 26px; bottom: 22px; width: 22px; height: 22px; color: var(--blue-deep);
  transition: transform .2s ease;
}
.svc:hover .svc-arrow { transform: translateX(5px); }

/* --- split (image + text) --------------------------------------------- */
.split { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-text { grid-template-columns: 5fr 7fr; align-items: start; } }
.split img { border-radius: var(--radius); width: 100%; }
.points { list-style: none; padding: 0; margin-top: 1.6rem; }
.points li { padding-left: 1.6rem; position: relative; }
.points li + li { margin-top: 1.25rem; }
.points li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 2px;
  background: var(--blue); transform: rotate(45deg);
}
.points strong { color: var(--navy); }

/* --- services (What we do) -------------------------------------------- */
.service { display: grid; gap: clamp(20px, 4vw, 64px); padding-block: clamp(44px, 6vw, 72px); border-top: 1px solid var(--rule); }
.service:first-child { border-top: 0; padding-top: 0; }
.service:last-child { padding-bottom: 0; }
@media (min-width: 900px) { .service { grid-template-columns: 5fr 7fr; } }
.tagline { font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.25rem); color: var(--blue-deep); margin-top: .7rem; }
.service-body > * + * { margin-top: 1.1rem; }
.ticks { list-style: none; padding: 0; display: grid; gap: .6rem; }
@media (min-width: 640px) { .ticks { grid-template-columns: 1fr 1fr; gap: .8rem 1.6rem; } }
.ticks li {
  position: relative; padding: .85rem 1rem .85rem 2.6rem; background: var(--tint); border-radius: 8px;
  line-height: 1.45; font-size: 1rem;
}
.ticks li::before {
  content: ""; position: absolute; left: 1rem; top: 1.05rem; width: 12px; height: 7px;
  border-left: 2.5px solid var(--blue-deep); border-bottom: 2.5px solid var(--blue-deep); transform: rotate(-45deg);
}

/* --- CTA band ---------------------------------------------------------- */
.cta { background: var(--blue); color: var(--white); text-align: center; }
.cta .wrap { padding-block: clamp(64px, 9vw, 104px); }
.cta h2 { color: var(--white); }
.cta p { margin: 1rem auto 0; font-size: clamp(1.1rem, 2vw, 1.25rem); max-width: 50ch; }
.cta .btn-row { justify-content: center; }

/* --- about: person ----------------------------------------------------- */
.person { display: grid; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (min-width: 860px) { .person { grid-template-columns: 340px 1fr; } }
.person picture img { border-radius: var(--radius); width: 100%; max-width: 380px; background: var(--white); }
.person h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.person .role { color: var(--blue-deep); font-weight: 700; }
.person-body > * + * { margin-top: 1.1rem; }
.social { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.social svg { width: 22px; height: 22px; }

/* --- contact ----------------------------------------------------------- */
.contact-grid { display: grid; gap: clamp(36px, 6vw, 72px); }
@media (min-width: 940px) { .contact-grid { grid-template-columns: 5fr 7fr; } }
.steps { list-style: none; padding: 0; counter-reset: step; margin-top: 1.4rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.2rem; min-height: 2.2rem; }
.steps li + li { margin-top: 1.1rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: -.05rem; width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: var(--white);
  font-weight: 800; font-size: .95rem;
}
.details { list-style: none; padding: 0; margin-top: 1.2rem; }
.details li + li { margin-top: .6rem; }
.details strong { color: var(--navy); }

.form-card { background: var(--mist); border-radius: var(--radius); padding: clamp(24px, 4vw, 44px); }
.form { display: grid; gap: 1.1rem; }
@media (min-width: 600px) { .form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.form .row { display: grid; gap: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .98rem; margin-bottom: .35rem; color: var(--navy); }
.field .req { color: #A23B2A; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid #B9C6CC; border-radius: 8px; padding: 12px 14px;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--blue-deep); box-shadow: 0 0 0 3px rgba(64, 123, 149, .25); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .92rem; color: var(--ink-soft); }
.form-status { border-radius: 8px; padding: 14px 16px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.ok { background: #E3F1E8; color: #1D5631; }
.form-status.err { background: #FBE9E6; color: #8A2B1C; }
.form button[disabled] { opacity: .65; cursor: progress; }

/* --- prose (privacy) --------------------------------------------------- */
.prose > * + * { margin-top: 1rem; }
.prose h2 { font-size: clamp(1.25rem, 2.6vw, 1.5rem); margin-top: 2.4rem; }
.prose ul { padding-left: 1.3rem; }
.prose li + li { margin-top: .4rem; }
.prose .updated { color: var(--ink-soft); font-weight: 600; }

/* --- footer ------------------------------------------------------------ */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .88); font-size: .98rem; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--wheat); }
.footer-grid { display: grid; gap: 36px; padding-block: clamp(52px, 7vw, 80px) 36px; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 5fr 4fr 4fr; } }
.footer-logo { height: 52px; width: auto; margin-bottom: 1.1rem; }
.footer-grid h2 { color: var(--white); font-size: 1rem; font-weight: 700; letter-spacing: .02em; margin-bottom: .8rem; }
.footer-grid p + p { margin-top: .7rem; }
.footer-links { list-style: none; padding: 0; }
.footer-links li + li { margin-top: .5rem; }
.footer-base {
  border-top: 1px solid rgba(255, 255, 255, .16); padding-block: 22px 30px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .9rem; color: rgba(255, 255, 255, .75);
}
