/* Mayhew VA, single-page site. Tokens + layout transcribed from the approved design (Mayhew VA v4). */

:root {
  --paper: #FBFAF8;
  --ink: #1D1C1A;
  --body: #57554F;
  --muted: #6E6C66;
  --faint: #8A8781;
  --powder: #ABC9E8;
  --blue: #48688F;
  --blue-dark: #2E4A70;
  --fill: #F4F2ED;
  --card: #FFFFFF;
  --hairline: rgba(29, 28, 26, 0.10);
  --hairline-soft: rgba(29, 28, 26, 0.07);
  --hairline-card: rgba(29, 28, 26, 0.08);
  --ease: cubic-bezier(.16, .68, .2, 1);
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
[hidden] { display: none !important; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); }
img { max-width: 100%; height: auto; }
button { font-family: inherit; }
::selection { background: var(--powder); color: var(--ink); }
input:focus-visible, textarea:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.pill:focus-visible { border-radius: 999px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 500;
}
.skip:focus { top: 12px; color: var(--paper); }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- Type ---------- */
h1, h2, h3 { margin: 0; font-weight: 550; }
h1 { font-size: clamp(42px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -0.035em; text-wrap: balance; }
h2 { font-size: clamp(32px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -0.03em; text-wrap: balance; }
.h2-about { font-size: clamp(30px, 3.8vw, 48px); line-height: 1.06; }
.h2-faq { font-size: clamp(30px, 3.8vw, 46px); line-height: 1.06; }
.h2-contact { font-size: clamp(32px, 4.2vw, 52px); }
p { text-wrap: pretty; }

.eyebrow {
  margin: 0 0 18px;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--faint);
}
.eyebrow::before {
  content: ""; display: inline-block; width: 8px; height: 8px;
  background: var(--powder); margin-right: 10px;
}
.eyebrow-center { margin-bottom: 26px; }

.intro { max-width: 640px; margin-bottom: 80px; }
.intro-sub { margin: 22px 0 0; font-size: 17px; color: var(--body); max-width: 52ch; }
.intro-steps { margin-bottom: 64px; }
.intro-packages { max-width: 660px; margin-bottom: 64px; }

.hl { background: linear-gradient(transparent 72%, var(--powder) 72%); }

/* ---------- Pills / links ---------- */
.pill {
  display: inline-block;
  border-radius: 999px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  line-height: 1.65;
  white-space: nowrap;
}
.pill-solid {
  background: var(--ink); color: var(--paper);
  border: none;
  padding: 12px 24px; font-size: 14px;
  transition: background .25s, color .25s;
}
.pill-sm { padding: 8px 18px; font-size: 13.5px; }
.pill-lg { padding: 13px 26px; font-size: 15px; }
.pill-outline {
  background: none; color: var(--ink);
  border: 1px solid rgba(29, 28, 26, 0.18);
  padding: 11px 24px; font-size: 14px;
  transition: background .25s, color .25s, border-color .25s;
}
.pill-invert { border-color: rgba(29, 28, 26, 0.2); }
.pill-quiet { padding: 9px 18px; font-size: 13.5px; }
/* Hold the resting text colour against the generic a:hover on touch devices, where the powder block below is off
   (a tapped link keeps :hover until the next tap). Same specificity as the guarded rules, which win by source order. */
.pill-solid:hover { color: var(--paper); }
.pill-outline:hover { color: var(--ink); }
/* Powder-blue hover on every CTA pill. Guarded so a tap on touch screens doesn't leave the state stuck. */
@media (hover: hover) {
  .pill-solid:hover { background: var(--powder); color: var(--ink); }
  .pill-outline:hover { background: var(--powder); color: var(--ink); border-color: var(--powder); }
  .nav-toggle:hover { background: var(--powder); border-color: var(--powder); }
}
/* Press feedback on every device (iOS only applies :active on tap when a touchstart listener exists, see script.js). */
.pill-solid:active { background: var(--powder); color: var(--ink); }
.pill-outline:active { background: var(--powder); color: var(--ink); border-color: var(--powder); }
.textlink { color: var(--blue); font-size: 15px; font-weight: 500; }
.textlink-sm { font-size: 14px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(251, 250, 248, 0.8);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid var(--hairline-soft);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { background: rgba(251, 250, 248, 0.95); }
}
.header-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 60px;
}
.lockup { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.lockup:hover { color: var(--ink); }
.lockup .mark { flex: none; display: block; }
.lockup-name { font-weight: 600; font-size: 19px; letter-spacing: -0.015em; }
.lockup-sm .lockup-name { font-size: 15.5px; }

.nav-desktop { display: flex; align-items: center; gap: 30px; }
.nav-desktop > a:not(.pill) {
  color: var(--muted); font-size: 13.5px; font-weight: 500; letter-spacing: 0.005em;
  transition: color .25s;
}
.nav-desktop > a:not(.pill):hover { color: var(--ink); }

.nav-toggle {
  display: none;
  background: none; border: 1px solid rgba(29, 28, 26, 0.16); border-radius: 999px;
  padding: 7px 16px; cursor: pointer; color: var(--ink);
  font-size: 13.5px; font-weight: 500; line-height: 1.65;
  transition: background .25s, border-color .25s;
}
.nav-mobile {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--hairline-soft);
  background: var(--paper);
  padding: 8px 32px 24px;
}
.nav-mobile > a:not(.pill) {
  color: var(--ink); font-size: 18px; font-weight: 500;
  padding: 13px 2px; border-bottom: 1px solid var(--hairline-soft);
}
.nav-mobile-cta { margin-top: 16px; padding: 13px; font-size: 15px; }

@media (max-width: 900px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; }
  .nav-mobile.is-open { display: flex; }
  .no-js .nav-mobile { display: flex; }
}

/* ---------- Hero ---------- */
.hero { padding-top: 110px; padding-bottom: 130px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 6.6fr) minmax(0, 5.4fr);
  gap: 80px; align-items: center;
}
.hero .eyebrow { margin-bottom: 30px; }
.hero-sub { margin: 30px 0 0; max-width: 46ch; font-size: 18px; line-height: 1.7; color: var(--body); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 40px; align-items: center; }
.hero-meta { margin: 34px 0 0; font-size: 13.5px; color: var(--faint); }

.portrait { margin: 0; }
.portrait picture, .portrait img { display: block; }
.portrait img {
  width: 100%; height: auto;
  aspect-ratio: 4 / 4.6; object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(29, 28, 26, 0.12);
  background: linear-gradient(160deg, #EAF1F8, #DCE8F4);
}
.portrait-fallback {
  display: none;
  background: linear-gradient(160deg, #EAF1F8, #DCE8F4);
  aspect-ratio: 4 / 4.6; border-radius: 20px;
  align-items: center; justify-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #5F6B7A;
}
.portrait-missing picture { display: none; }
.portrait-missing .portrait-fallback { display: flex; }
.portrait figcaption {
  display: flex; justify-content: space-between; gap: 10px;
  padding: 14px 4px 0; font-size: 13px; color: var(--faint);
}
.cap-name { font-weight: 600; color: var(--ink); }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
}

/* ---------- Sections ---------- */
.section { padding: 0 32px; }
.section-inner {
  max-width: 1200px; margin: 0 auto;
  border-top: 1px solid var(--hairline);
  padding: 110px 0;
}
.services-inner { padding-bottom: 58px; } /* last service row carries 52px of its own, so the gap matches the other sections */
.steps-inner { padding-bottom: 90px; }
.reviews-inner { border-top: none; padding: 120px 0 100px; }
.contact-inner { padding-bottom: 0; }
.contact { padding-bottom: 120px; }
#services, #about, #packages, #reviews, #faq, #contact { scroll-margin-top: 72px; }

.grid2 {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 88px; align-items: start;
}
@media (max-width: 900px) {
  .grid2 { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

/* ---------- Services ---------- */
.svcrow {
  display: grid; grid-template-columns: minmax(0, 4.5fr) minmax(0, 7.5fr);
  gap: 64px;
  border-top: 1px solid var(--hairline);
  padding: 52px 0;
}
.svc-num { margin: 0 0 14px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--blue); }
.svc-title { font-size: 26px; line-height: 1.15; letter-spacing: -0.025em; }
.svc-body { min-width: 0; }
.svc-blurb { margin: 0 0 18px; font-size: 17px; color: var(--body); max-width: 56ch; }
.tasks { margin: 0; font-size: 15.5px; line-height: 1.9; color: var(--faint); max-width: 64ch; }
.tasks-toggle {
  display: inline-block;
  margin-top: 6px; padding: 10px 0;
  background: none; border: none; cursor: pointer;
  font-size: 14.5px; font-weight: 500; line-height: 1.65; color: var(--blue);
  transition: color .25s;
}
.tasks-toggle:hover { color: var(--blue-dark); }
@media (max-width: 860px) {
  .svcrow { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* ---------- About ---------- */
.h2-about#about-h { margin-bottom: 26px; }
.about-p { margin: 0 0 16px; font-size: 17px; color: var(--body); }
.about-p-last { margin-bottom: 0; }
.facts { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; }
.facts li { padding: 17px 0; border-bottom: 1px solid rgba(29, 28, 26, 0.09); font-size: 15.5px; color: #3B3934; }

/* ---------- Working together ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 44px; }
.step { border-top: 2px solid var(--powder); padding-top: 22px; }
.step-num { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--blue); }
.step-title { margin: 0 0 8px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.step-desc { margin: 0; font-size: 14.5px; color: var(--muted); }

/* ---------- Packages ---------- */
.packages { background: linear-gradient(var(--paper), var(--fill) 12%, var(--fill) 88%, var(--paper)); }
.packages-inner { border-top: none; }
.pkgcards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(224px, 1fr));
  gap: 16px; align-items: stretch;
}
.pkg {
  display: flex; flex-direction: column;
  background: var(--card); color: var(--ink);
  border: 1px solid var(--hairline-card); border-radius: 22px;
  padding: 28px 26px 30px;
}
.pkg.is-popular {
  border: 1.5px solid var(--powder);
  box-shadow: 0 24px 60px rgba(72, 104, 143, 0.14);
}
.pkg-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; margin-bottom: 14px; }
.pkg-name { font-size: 15px; font-weight: 600; letter-spacing: -0.005em; }
.badge {
  background: var(--powder); color: var(--ink);
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; line-height: 1.65;
}
.pkg-price { display: flex; align-items: baseline; gap: 6px; }
.pkg-amount { font-weight: 550; font-size: 40px; letter-spacing: -0.035em; line-height: 1; }
.pkg-per { font-size: 13.5px; color: var(--faint); }
.pkg-hours { margin: 10px 0 0; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.pkg.is-popular .pkg-hours { color: var(--blue); }
.pkg-desc { margin: 14px 0 24px; font-size: 14px; line-height: 1.6; flex: 1; color: var(--muted); }
.pkg-cta { display: block; padding-left: 12px; padding-right: 12px; }
.pkg-cta.pill-solid { padding: 12px; }
.pkg-cta.pill-outline { padding: 11px; }

.bespoke {
  margin-top: 16px;
  background: var(--card); border: 1px solid var(--hairline-card); border-radius: 20px;
  padding: 28px 30px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.bespoke-text { max-width: 62ch; }
.bespoke-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.bespoke-desc { margin: 0; font-size: 14.5px; color: var(--muted); }
.pkg-footnote { margin: 26px 4px 0; font-size: 14px; color: var(--faint); text-align: center; }

/* ---------- Reviews ---------- */
.lead-quote { max-width: 920px; margin: 0 auto 90px; text-align: center; }
/* Sized for the full Three Sixty Finance quote; the shorter it gets, the larger this can go. */
.lead-quote-text {
  margin: 0; font-weight: 500;
  font-size: clamp(19px, 2.3vw, 27px); line-height: 1.4; letter-spacing: -0.02em;
  color: var(--ink); text-wrap: pretty;
}
.lead-quote-who { margin: 30px 0 0; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.qgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 56px 48px; }
.quote {
  margin: 0; border-top: 1px solid rgba(29, 28, 26, 0.12); padding-top: 26px;
  display: flex; flex-direction: column; gap: 18px;
}
.quote blockquote { margin: 0; font-size: 15.5px; line-height: 1.75; color: var(--body); flex: 1; text-wrap: pretty; }
.quote figcaption { font-size: 12.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 80px; align-items: start; }
.faq-note { margin: 22px 0 0; font-size: 15.5px; color: var(--muted); max-width: 32ch; }
.faq-item { border-bottom: 1px solid var(--hairline); }
.faq-q { margin: 0; font-size: inherit; font-weight: inherit; }
.faq-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  background: none; border: none; padding: 24px 2px; cursor: pointer; text-align: left;
  color: var(--ink);
}
.faq-q-text { font-size: 17px; font-weight: 550; letter-spacing: -0.015em; }
.faq-sign { font-size: 22px; font-weight: 400; color: var(--blue); line-height: 1; flex: none; }
.faq-a p { margin: 0; padding: 0 2px 26px; font-size: 16px; color: var(--body); max-width: 56ch; }
@media (max-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

/* ---------- Contact ---------- */
.h2-contact { margin-bottom: 24px; }
.contact-p { margin: 0 0 34px; font-size: 17px; color: var(--body); max-width: 44ch; }
.email-big {
  font-weight: 550; font-size: clamp(19px, 2.3vw, 25px); letter-spacing: -0.02em;
  color: var(--ink); overflow-wrap: anywhere;
  border-bottom: 2px solid var(--powder);
}
.email-big:hover { color: var(--blue); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 30px; align-items: center; }

.enquiry { display: flex; flex-direction: column; gap: 14px; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.field-wrap { display: flex; flex-direction: column; min-width: 0; }
.field {
  width: 100%;
  border: none; border-radius: 14px;
  padding: 15px 17px;
  font: inherit; font-size: 15px;
  background: var(--fill); color: var(--ink);
}
.field::placeholder { color: var(--muted); opacity: 1; }
.field-select { padding: 15px 13px; }
textarea.field { resize: vertical; min-height: 120px; }
.pill-submit { padding: 15px; font-size: 15px; border: none; }
.pill-submit[disabled] { opacity: .6; cursor: default; }
.form-note { margin: 0; font-size: 12.5px; color: var(--faint); text-align: center; }
.form-status { margin: 0; font-size: 14px; line-height: 1.55; text-align: center; }
.form-status.is-ok { color: var(--ink); font-weight: 500; }
.form-status.is-err { color: #8A3324; }
.form-status a { color: inherit; text-decoration: underline; }
/* Honeypot: off screen rather than display:none, which bots skip. Never focusable. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 900px) {
  .field { font-size: 16px; } /* iOS zooms into inputs below 16px */
}

/* ---------- Footer ---------- */
.site-footer { background: var(--fill); padding: 56px 0 40px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-start; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-nav a { color: var(--muted); font-size: 13.5px; }
.footer-nav a:hover { color: var(--ink); }
.footer-contact { display: flex; gap: 16px; font-size: 13.5px; align-items: center; }
.footer-email { color: var(--blue); }
.footer-li { color: var(--muted); display: inline-flex; }
.footer-li:hover { color: var(--ink); }
.footer-legal {
  margin: 44px 0 0; font-size: 12.5px; color: var(--faint);
  border-top: 1px solid var(--hairline-card); padding-top: 20px;
}

/* ---------- Motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 1s var(--ease) both; }
.d2 { animation-delay: .12s; }
.d3 { animation-delay: .24s; }
.d4 { animation-delay: .36s; }
.d5 { animation-delay: .5s; }
/* .rv-pre is only ever added by JS, to blocks still below the fold at init */
.rv-pre { opacity: 0; transform: translateY(22px); }
.rv-on { opacity: 1 !important; transform: none !important; transition: opacity 1s ease, transform 1s var(--ease); }

/* Honoured for visitors. `?motion=on` in the URL adds html.force-motion (see the inline head script) so the
   motion can be previewed on a machine whose OS has animations switched off. */
@media (prefers-reduced-motion: reduce) {
  html:not(.force-motion) { scroll-behavior: auto; }
  html:not(.force-motion) *, html:not(.force-motion) *::before, html:not(.force-motion) *::after { transition: none !important; animation: none !important; }
  html:not(.force-motion) .rise, html:not(.force-motion) .rv-pre { opacity: 1; transform: none; }
}

/* ---------- Mobile rhythm ---------- */
@media (max-width: 900px) {
  .hero { padding-top: 64px; padding-bottom: 80px; }
  .section-inner { padding: 64px 0; }
  .services-inner { padding-bottom: 28px; }
  .steps-inner { padding-bottom: 56px; }
  .reviews-inner { padding: 72px 0 64px; }
  .contact-inner { padding-bottom: 0; }
  .contact { padding-bottom: 72px; }
  .intro { margin-bottom: 48px; }
  .intro-steps, .intro-packages { margin-bottom: 40px; }
  .lead-quote { margin-bottom: 56px; }
  .svcrow { padding: 36px 0; }
  .qgrid { gap: 40px 32px; }
}
