/* ============================================================
   EXPR Accounting — design system
   Palette: pine-teal ink · brass accent · warm paper
   Type: Fraunces (display) · Archivo (body) · IBM Plex Mono (figures)
   ============================================================ */

:root {
  --ink:      #103A33;
  --ink-700:  #16544A;
  --ink-500:  #2E6F63;
  --paper:    #F4F4EF;
  --card:     #FBFBF8;
  --brass:    #A9742E;
  --brass-2:  #C79A54;
  --line:     #D8D7CC;
  --line-2:   #E6E5DC;
  --text:     #1B2521;
  --muted:    #5C665F;

  --display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1120px;
  --radius: 4px;
  --shadow: 0 1px 2px rgba(16,58,51,.06), 0 12px 32px rgba(16,58,51,.07);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

.wrap { width: min(var(--wrap), calc(100% - 48px)); margin-inline: auto; }

img { max-width: 100%; display: block; }

a { color: var(--ink-700); text-decoration-color: var(--line); text-underline-offset: 3px; }
a:hover { color: var(--brass); }

h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.08; letter-spacing: -.01em; margin: 0; }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brass);
  margin: 0 0 .9rem;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .7rem 1rem; border-radius: var(--radius);
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--sans); font-weight: 600; font-size: .98rem;
  padding: .8rem 1.5rem; border-radius: var(--radius);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-700); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.wordmark { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; }
.wordmark img { height: 34px; width: auto; display: block; }
.wordmark-mark {
  font-family: var(--mono); font-weight: 600; font-size: 1.25rem;
  letter-spacing: .1em; color: var(--ink);
}
.wordmark-sub { font-family: var(--display); font-size: 1.05rem; color: var(--ink-500); font-style: italic; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { font-weight: 500; font-size: .96rem; text-decoration: none; color: var(--text); }
.nav a:hover { color: var(--brass); }
.nav .nav-phone { font-family: var(--mono); font-size: .9rem; color: var(--ink); white-space: nowrap; }
.nav .nav-phone:hover { color: var(--brass); }
.nav .nav-cta {
  border: 1.5px solid var(--ink); color: var(--ink); padding: .45rem 1.1rem; border-radius: var(--radius);
}
.nav .nav-cta:hover { background: var(--ink); color: var(--paper); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; width: 44px; height: 44px; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); display: block; transition: transform .2s ease, opacity .2s ease; }

.mobile-nav { display: none; flex-direction: column; padding: .5rem 24px 1rem; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-nav a { padding: .75rem 0; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--line-2); font-weight: 500; }

/* ---------- Hero ---------- */
.hero { padding: clamp(3rem, 7vw, 6rem) 0 clamp(2.5rem, 5vw, 4rem); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  margin: 0 0 1.3rem;
  max-width: 15ch;
}
.lede { font-size: 1.13rem; color: var(--muted); max-width: 52ch; margin: 0 0 2rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.hero-note { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--muted); margin: 0; }

/* Statement panel (signature) */
.statement {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.6rem 1.4rem;
  position: relative;
}
.statement::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--brass), var(--brass-2));
  border-radius: 6px 6px 0 0;
}
.statement-head {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .1em;
  color: var(--ink); padding-bottom: .9rem; border-bottom: 2px solid var(--ink);
  margin-top: .4rem;
}
.statement-lines { list-style: none; margin: 0; padding: .4rem 0; }
.statement-lines li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: .62rem 0; border-bottom: 1px dashed var(--line);
  font-size: .96rem;
}
.statement-lines .tick { font-family: var(--mono); color: var(--ink-500); font-weight: 600; }
.statement-total {
  display: flex; justify-content: space-between; align-items: baseline;
  border-top: 2px solid var(--ink); margin-top: .3rem; padding-top: .85rem;
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem;
}
.statement-total .balanced { color: var(--brass); font-weight: 600; }

/* ---------- Trust strip ---------- */
.trust { border-block: 1px solid var(--line); background: var(--card); }
.trust-inner { display: flex; align-items: center; gap: 1.5rem 2rem; flex-wrap: wrap; padding: 1.1rem 0; }
.trust-label { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.trust-chips { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem .7rem; margin: 0; padding: 0; }
.trust-chips li {
  font-size: .82rem; font-weight: 500; color: var(--ink-700);
  border: 1px solid var(--line); border-radius: 100px; padding: .28rem .85rem; background: var(--paper);
}

/* ---------- Generic section ---------- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-head { max-width: 40ch; margin-bottom: 2.8rem; }
.section-head h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: .8rem; }
.section-sub { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* ---------- Services ledger ---------- */
.services { background: var(--paper); }
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.ledger-row {
  display: grid; grid-template-columns: 64px 1fr; gap: 1.5rem;
  padding: 1.7rem 0; border-bottom: 1px solid var(--line);
  transition: background .2s ease;
}
.ledger-row:hover { background: color-mix(in srgb, var(--brass) 6%, transparent); }
.ledger-no { font-family: var(--mono); font-size: 1rem; color: var(--brass); font-weight: 600; padding-top: .35rem; }
.ledger-body h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.ledger-body p { margin: 0; color: var(--muted); max-width: 62ch; }

.services-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 2.6rem; padding: 1.6rem 1.8rem; background: var(--ink); border-radius: 6px; color: var(--paper);
}
.services-cta p { margin: 0; font-size: 1.1rem; font-family: var(--display); }
.services-cta-lead { font-size: 1.35rem !important; color: #fff; margin-bottom: .3rem !important; }
.services-cta-sub { font-family: var(--sans) !important; font-size: .98rem !important; color: #cfe0da; max-width: 52ch; }
.services-cta .btn-primary { background: var(--brass); color: #fff; border-color: var(--brass); }
.services-cta .btn-primary:hover { background: var(--brass-2); color: #fff; }

/* ---------- Approach ---------- */
.approach { background: var(--card); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.step { padding-top: 1.2rem; border-top: 2px solid var(--brass); }
.step-no { font-family: var(--mono); font-size: .95rem; color: var(--brass); font-weight: 600; }
.step h3 { font-size: 1.3rem; margin: .5rem 0 .5rem; }
.step p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ---------- Areas ---------- */
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; }
.area-col h3 { font-size: 1.5rem; margin-bottom: .9rem; color: var(--ink); }
.area-list { color: var(--muted); line-height: 1.9; margin: 0; }

/* ---------- Who we help ---------- */
.who { background: var(--paper); }
.who-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.who-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.6rem 1.7rem; border-left: 3px solid var(--brass);
}
.who-card h3 { font-size: 1.35rem; margin-bottom: .5rem; }
.who-card p { margin: 0; color: var(--muted); }

/* ---------- About ---------- */
.about { background: var(--card); border-block: 1px solid var(--line); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.about-media { position: sticky; top: 96px; }
.about-media img {
  width: 100%; max-width: 300px; border-radius: 8px; display: block;
  filter: grayscale(100%); box-shadow: var(--shadow);
}
.about-card {
  max-width: 300px; margin-top: 1.1rem; padding: 1.1rem 1.2rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px; border-top: 3px solid var(--brass);
}
.about-name { font-family: var(--display); font-size: 1.3rem; color: var(--ink); margin: 0 0 .3rem; }
.about-quals { font-size: .8rem; color: var(--muted); margin: 0 0 .5rem; line-height: 1.5; }
.about-title { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--brass); margin: 0; }
.about-copy h2 { font-size: clamp(1.9rem, 3.8vw, 2.9rem); margin-bottom: 1.2rem; }
.about-copy p { color: var(--muted); margin: 0 0 1.1rem; max-width: 62ch; }
.about-copy .btn { margin-top: .6rem; }

/* ---------- Contact ---------- */
.contact { background: var(--paper); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-details { margin: 2rem 0 0; display: grid; gap: 1.3rem; }
.contact-details dt { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: .25rem; }
.contact-details dd { margin: 0; font-size: 1.05rem; }

.contact-form {
  background: var(--card); border: 1px solid var(--line); border-radius: 6px;
  padding: 1.8rem; box-shadow: var(--shadow);
}
.field { margin-bottom: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: block; font-size: .82rem; font-weight: 600; margin-bottom: .4rem; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--sans); font-size: 1rem; color: var(--text);
  padding: .7rem .85rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: var(--paper); transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink-500); outline: none; }
.field textarea { resize: vertical; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: .9rem 0 0; font-size: .92rem; min-height: 1.2em; }
.form-status.ok { color: var(--ink-500); font-weight: 600; }
.form-status.err { color: #a3341f; font-weight: 600; }
.form-fallback { margin: .8rem 0 0; font-size: .85rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--card); border-block: 1px solid var(--line); }

.reviews-embed { min-height: 40px; }
.reviews-fallback {
  max-width: 620px; margin-inline: auto; text-align: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: 6px;
  padding: 2.4rem 2rem;
}
.reviews-fallback .stars { display: block; font-size: 1.3rem; margin-bottom: .6rem; }
.reviews-fallback-lead { font-family: var(--display); font-size: 1.4rem; color: var(--text); margin: 0 0 .6rem; }
.reviews-fallback p { color: var(--muted); margin: 0 auto 1.4rem; max-width: 46ch; }
.reviews-fallback .btn { margin-top: .2rem; }

.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.quote-card {
  margin: 0; padding: 1.6rem; background: var(--paper);
  border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column;
}
.quote-card blockquote {
  margin: 0 0 1.2rem; font-family: var(--display); font-size: 1.15rem; line-height: 1.45; color: var(--text);
  flex: 1;
}
.quote-card blockquote::before { content: "\201C"; color: var(--brass); font-size: 1.3em; line-height: 0; vertical-align: -.15em; margin-right: .1em; }
.quote-card figcaption { display: flex; flex-direction: column; gap: .3rem; }
.stars { color: var(--brass); letter-spacing: .1em; font-size: .95rem; }
.quote-by { font-family: var(--mono); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }

/* ---------- Footer credentials ---------- */
.footer-creds {
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; padding: 1.4rem 0 .2rem;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; color: #a9c0b9;
}
.footer-creds a { color: #cfe0da; }
.footer-creds a:hover { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cfe0da; padding: 3rem 0 1.6rem; }
.footer-inner { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand .wordmark-mark { color: #fff; font-size: 1.3rem; }
.footer-brand .wordmark-sub { color: var(--brass-2); }
.footer-logo { height: 44px; width: auto; display: block; }
.footer-creds-line { font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--brass-2); margin: .7rem 0 0; }
.footer-brand p { margin: .6rem 0 0; max-width: 30ch; color: #a9c0b9; font-size: .95rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%;
  color: #cfe0da; transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.footer-social a:hover { background: var(--brass); border-color: var(--brass); color: #fff; }
.footer-nav { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.footer-nav a { color: #cfe0da; text-decoration: none; font-weight: 500; }
.footer-nav a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.4rem; font-family: var(--mono); font-size: .74rem; color: #86a49b; }
.footer-legal p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .statement { max-width: 460px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .quote-grid { grid-template-columns: 1fr; }
  .nav-phone { display: none; }
  .about-grid { grid-template-columns: 1fr; }
  .about-media { position: static; display: flex; gap: 1.2rem; align-items: flex-start; flex-wrap: wrap; }
  .about-media img { max-width: 200px; }
  .about-card { margin-top: 0; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .steps { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .who-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .services-cta { flex-direction: column; align-items: flex-start; }
  .footer-legal { flex-direction: column; }
}
