/* ==========================================================================
   Waigand Strategic CPA — site styles (v3: light green background, dark green boxes)
   Edit the tokens below to change colors and fonts site-wide.
   ========================================================================== */

:root {
  /* Page (light) */
  --bg: #f4f8f5;
  --bg-tint-1: #e7f0ea;
  --bg-tint-2: #d9e7de;
  --ink: #142720;          /* headings on light */
  --text: #26392f;         /* body text on light */
  --muted: #4f6459;        /* secondary text on light */
  --line: #cddcd2;
  --gold-dark: #876629;    /* small labels on light */

  /* Boxes (dark) */
  --box: #1d372e;
  --box-deep: #152a23;
  --box-line: rgba(255, 255, 255, 0.12);
  --on-box: #eef3ef;
  --on-box-muted: #b8c9bf;

  /* Header / footer */
  --chrome: #12231d;

  /* Accents */
  --sage: #92bca6;
  --sage-light: #b4d3c2;
  --gold: #d4b87e;

  --logo: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;
  --heading: "Urbanist", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --radius: 12px;
  --shadow: 0 12px 30px rgba(20, 39, 32, 0.16);
  --max: 1160px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; } /* keep anchored sections clear of the sticky header */

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: #24574a; }
a:hover { color: var(--ink); }

h1, h2, h3, h4 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--sage);
  color: var(--chrome);
  padding: 8px 14px;
  border-radius: 6px;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Dark boxes: shared text colors ---------- */

.box,
.hero-card, .industry, .feature, .statement, .plan, .note,
.glance, .contact-card, .teaser-box, .cfo {
  color: var(--on-box);
}
.box h3, .hero-card h3, .industry h3, .feature h3, .statement h3, .plan h3,
.note h3, .glance h3, .contact-card h3, .teaser-box h3, .cfo h2, .cfo h3 {
  color: #fff;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(18, 35, 29, 0.97);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}
.brand:hover { color: #fff; }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name {
  font-family: var(--logo);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--logo);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 28px; }
.nav a,
.dropdown-toggle {
  text-decoration: none;
  color: #eef3ef;
  font-family: var(--heading);
  font-size: 1rem;
  font-weight: 600;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.dropdown-toggle:hover { color: var(--sage-light); }
.nav a[aria-current="page"],
.dropdown-toggle.is-active {
  color: var(--sage-light);
  border-bottom-color: var(--sage);
}
.nav .btn { border-bottom: 0; padding: 10px 20px; }

/* Industries dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  cursor: pointer;
  line-height: inherit;
}
.dropdown-toggle svg { transition: transform 0.15s ease; }
.has-dropdown.open .dropdown-toggle svg { transform: rotate(180deg); }

.dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: -18px;
  padding-top: 14px;          /* hover bridge between toggle and menu */
  min-width: 250px;
}
.dropdown-inner {
  background: var(--chrome);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  padding: 8px;
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  border-bottom: 0;
}
.dropdown a:hover { background: rgba(146, 188, 166, 0.14); }
.dropdown a[aria-current="page"] { background: rgba(146, 188, 166, 0.18); }

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.open .dropdown { display: block; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: #fff;
}
.nav-toggle svg { display: block; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--heading);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  cursor: pointer;
}
/* On light backgrounds */
.btn-primary { background: var(--box); color: #fff !important; }
.btn-primary:hover { background: var(--box-deep); }
.btn-ghost { border-color: var(--box); color: var(--box) !important; background: transparent; }
.btn-ghost:hover { background: var(--box); color: #fff !important; }
/* On dark boxes / header */
.btn-sage { background: var(--sage); color: var(--chrome) !important; }
.btn-sage:hover { background: var(--sage-light); }
.btn-outline-light { border-color: var(--sage); color: var(--sage-light) !important; background: transparent; }
.btn-outline-light:hover { background: var(--sage); color: var(--chrome) !important; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.bg-tint { background: linear-gradient(180deg, var(--bg-tint-1), var(--bg-tint-2)); }
.bg-soft { background: linear-gradient(180deg, var(--bg), var(--bg-tint-1)); }

.eyebrow {
  display: inline-block;
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.cfo .eyebrow, .box .eyebrow { color: var(--gold); }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 700px; }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ---------- Hero (light gradient + faint ledger lines) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 100px 0 108px;
  background:
    radial-gradient(760px 440px at 90% 0%, rgba(146, 188, 166, 0.45), transparent 70%),
    radial-gradient(600px 380px at 0% 100%, rgba(212, 184, 126, 0.16), transparent 70%),
    linear-gradient(180deg, #e3eee7, var(--bg));
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    180deg, transparent 0 47px, rgba(20, 39, 32, 0.05) 47px 48px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
          mask-image: linear-gradient(90deg, transparent, #000 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 34px; }

.hero-card {
  background: var(--box);
  border-radius: 16px;
  padding: 32px;
  box-shadow: var(--shadow);
}
.hero-card h3 { font-size: 1.1rem; margin-bottom: 6px; color: var(--sage-light); }

.stat { padding: 18px 0; border-top: 1px solid var(--box-line); }
.stat:first-of-type { border-top: 0; }
.stat:last-child { padding-bottom: 0; }
.stat strong {
  display: block;
  font-family: var(--heading);
  font-size: 1.9rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 4px;
}
.stat span { display: block; color: var(--on-box-muted); font-size: 0.98rem; line-height: 1.45; }

/* ---------- Industries (icon cards) ---------- */

.industries {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.industry {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 38px 28px 32px;
  background: var(--box);
  border-radius: 16px;
  box-shadow: var(--shadow);
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
a.industry:hover { transform: translateY(-3px); background: var(--box-deep); color: var(--on-box); }
.industry-icon { width: 72px; height: 72px; margin-bottom: 18px; color: var(--sage-light); }
.industry h3 { font-size: 1.3rem; margin-bottom: 10px; }
.industry p { color: var(--on-box-muted); font-size: 1rem; margin: 0 0 18px; flex: 1; }
.industry .more { font-family: var(--heading); font-weight: 700; color: var(--sage-light); }

/* ---------- Feature grid ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature {
  background: var(--box);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: rgba(146, 188, 166, 0.18);
  color: var(--sage-light);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.feature h3 { font-size: 1.2rem; margin-bottom: 8px; }
.feature p { color: var(--on-box-muted); font-size: 1rem; margin: 0; }

/* ---------- Teaser / CTA band ---------- */

.teaser {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: center;
}
.teaser-box {
  background: var(--box);
  border-radius: 16px;
  padding: 36px;
  text-align: center;
  box-shadow: var(--shadow);
}
.teaser-price {
  font-family: var(--heading);
  font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 3.8rem);
  color: #fff;
  line-height: 1;
  margin-bottom: 8px;
}
.teaser-price small { font-size: 1.1rem; font-weight: 600; color: var(--on-box-muted); }
.teaser-box p { color: var(--on-box-muted); margin-bottom: 24px; }
.teaser-box .small { font-size: 0.95rem; margin: 18px 0 0; }
.teaser-box .small a { color: var(--sage-light); }

.cta-band { text-align: center; }
.cta-band .lead { margin: 0 auto 30px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Page header (inner pages) ---------- */

.page-header {
  padding: 84px 0 68px;
  background:
    radial-gradient(700px 340px at 90% 0%, rgba(146, 188, 166, 0.45), transparent 70%),
    linear-gradient(180deg, #e3eee7, var(--bg));
  border-bottom: 1px solid var(--line);
}
.page-header .lead { margin-bottom: 0; }
.page-header .lead + .lead { margin-top: 1em; }

.page-header-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 56px;
  align-items: center;
}

/* ---------- Financial statements (services) ---------- */

.statements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.statement {
  background: var(--box);
  border-radius: var(--radius);
  padding: 32px 30px;
  border-top: 4px solid var(--sage);
  box-shadow: var(--shadow);
}
.statement h3 { font-size: 1.3rem; margin-bottom: 6px; }
.statement .question {
  font-family: var(--heading);
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 12px;
}
.statement p { color: var(--on-box-muted); font-size: 1rem; margin: 0; }

/* ---------- Pricing ---------- */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.plan {
  background: var(--box);
  border: 2px solid transparent;
  border-radius: 16px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.plan.featured { border-color: var(--sage); background: var(--box-deep); }
.plan-tag {
  display: inline-block;
  font-family: var(--heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--chrome);
  background: var(--sage);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
}
.plan-name {
  font-family: var(--heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.plan-price { font-family: var(--heading); color: var(--sage-light); margin-bottom: 2px; }
.plan-price .from { font-size: 1.1rem; font-weight: 600; }
.plan-price .amount { font-size: 2.2rem; font-weight: 800; line-height: 1.1; }
.plan-price .per { font-size: 1rem; font-weight: 600; }
.plan-fee { font-size: 0.92rem; color: var(--on-box-muted); margin-bottom: 16px; }
.plan-ideal {
  font-size: 1rem;
  font-style: italic;
  padding: 16px 0 18px;
  border-top: 1px solid var(--box-line);
  margin: 0;
}

.checklist { list-style: none; margin: 0 0 28px; padding: 0; }
.plan .checklist { flex: 1; }
.checklist li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 1rem;
  line-height: 1.5;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 13px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--sage-light);
  border-bottom: 2px solid var(--sage-light);
  transform: rotate(-45deg);
}
.checklist li.plus { font-weight: 700; color: var(--sage-light); padding-left: 0; }
.checklist li.plus::before { display: none; }
.checklist li.key { font-weight: 600; color: #fff; }
.checklist li em { color: var(--on-box-muted); font-size: 0.92rem; }
.plan .btn { text-align: center; }

/* Fractional CFO */
.cfo {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  background: var(--box-deep);
  border-radius: 20px;
  padding: 48px;
  box-shadow: var(--shadow);
  border-left: 6px solid var(--gold);
}
.cfo + .cfo { margin-top: 32px; }
.cfo .lead { color: var(--on-box-muted); font-size: 1.1rem; }
.cfo-price {
  font-family: var(--heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin: 8px 0 4px;
}
.cfo-price-note { color: var(--on-box-muted); font-size: 0.96rem; margin-bottom: 24px; }
.cfo .checklist { margin-bottom: 0; }
.cfo-tag {
  display: inline-block;
  font-family: var(--heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chrome);
  background: var(--gold);
  border-radius: 999px;
  padding: 5px 12px;
  margin-bottom: 16px;
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.note {
  border-radius: var(--radius);
  padding: 28px 30px;
  background: var(--box);
  box-shadow: var(--shadow);
}
.note h3 { font-size: 1.15rem; }
.note p { margin: 0; color: var(--on-box-muted); font-size: 1rem; }
.note.warn { border-left: 4px solid var(--gold); }
.note.warn h3 { color: var(--gold); }

/* ---------- Industry pages ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 32px;
  align-items: start;
}
.box {
  background: var(--box);
  border-radius: 16px;
  padding: 36px;
  box-shadow: var(--shadow);
}
.box.deep { background: var(--box-deep); }
.box h3 { font-size: 1.3rem; margin-bottom: 16px; }
.box p { color: var(--on-box-muted); }
.box .checklist { margin-bottom: 0; }
.box a:not(.btn) { color: var(--sage-light); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.problem { border-top: 4px solid var(--gold); }
.problem h3 {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--gold);
  margin-bottom: 14px;
}
.problem p { margin: 0; }

.exp-list { list-style: none; margin: 0; padding: 0; }
.exp-list li { padding: 14px 0; border-top: 1px solid var(--box-line); }
.exp-list li:first-child { border-top: 0; padding-top: 0; }
.exp-list strong { display: block; color: #fff; font-family: var(--heading); font-size: 1.05rem; }
.exp-list span { color: var(--on-box-muted); font-size: 0.98rem; }

/* ---------- Photography ----------
   Drop a photo into images/ with the matching filename and it appears automatically.
   If the file isn't there, the gradient underneath shows instead and nothing breaks.
   Keep photos wide and quiet — texture, not subject matter — so text stays readable. */

.hero.has-photo {
  /* Wash strength: lower the numbers to let more photo through, raise them to mute it.
     Bright photos (snow, sky, water) need a lighter wash than dark ones. */
  background-image:
    linear-gradient(180deg, rgba(227,238,231,.46), rgba(244,248,245,.70)),
    url("../images/hero.jpg");
  background-size: cover, cover;
  background-position: center, center;
}
.page-header.has-photo {
  background-size: cover, cover;
  background-position: center, center 35%;
}
.page-header.ph-nonprofits {
  background-image:
    linear-gradient(180deg, rgba(227,238,231,.90), rgba(244,248,245,.94)),
    url("../images/photo-nonprofits.jpg");
}
.page-header.ph-govcon {
  background-image:
    linear-gradient(180deg, rgba(227,238,231,.90), rgba(244,248,245,.94)),
    url("../images/photo-govcon.jpg");
}
.page-header.ph-service {
  background-image:
    linear-gradient(180deg, rgba(227,238,231,.90), rgba(244,248,245,.94)),
    url("../images/photo-service.jpg");
}
/* Services & Pricing. The cherry blossom photo is softer and lower-contrast
   than the forest shots, so it needs a LIGHTER wash than the other pages to
   show through as much as they do. At the usual .90/.94 it turns into a grey
   smudge. Raise these two numbers to mute the pink further. */
.page-header.ph-pricing {
  background-image:
    linear-gradient(180deg, rgba(227,238,231,.82), rgba(244,248,245,.88)),
    url("../images/photo-pricing.jpg");
}

/* Full-width photo strip with light text on a dark wash */
.photo-band {
  position: relative;
  padding: 108px 0;
  background-color: var(--box);
  background-size: cover, cover;
  background-position: center, center;
  text-align: center;
}
.photo-band.band-home {
  background-image:
    linear-gradient(180deg, rgba(18,35,29,.72), rgba(18,35,29,.78)),
    url("../images/band-home.jpg");
}
.photo-band h2, .photo-band .eyebrow { color: #fff; }
.photo-band .eyebrow { color: var(--gold); }
.photo-band p {
  color: #e4ece7;
  font-size: 1.25rem;
  max-width: 740px;
  margin: 0 auto 28px;
}
.photo-band .btn-row { justify-content: center; }

@media (max-width: 640px) { .photo-band { padding: 72px 0; } }

/* ---------- About page photos ---------- */

.photo-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin: 40px 0 0;
}
.photo-card {
  background: var(--box);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.photo-strip.single { grid-template-columns: 1fr; max-width: 620px; }
.photo-card img { width: 100%; height: 300px; object-fit: cover; display: block; }
.photo-card .placeholder {
  height: 300px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--on-box-muted);
  font-size: .95rem;
  background: linear-gradient(160deg, var(--box), var(--box-deep));
}
.photo-card figcaption {
  padding: 16px 20px;
  color: var(--on-box-muted);
  font-size: .95rem;
  line-height: 1.45;
}
.photo-card { margin: 0; }

@media (max-width: 700px) { .photo-strip { grid-template-columns: 1fr; } }

/* ---------- Guides (long-form articles) ---------- */

.article { max-width: 780px; margin: 0 auto; }
.article > p, .article > ul, .article > ol { font-size: 1.08rem; }
.article h2 { margin-top: 1.8em; }
.article h3 { margin-top: 1.5em; font-size: 1.2rem; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 10px; }
.article .checklist { padding-left: 0; }

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  padding: 18px 0;
  margin: 0 0 8px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
  color: var(--muted);
}
.byline .author { font-family: var(--heading); font-weight: 700; color: var(--ink); }
.byline .dot { color: var(--line); }

.pull {
  border-left: 4px solid var(--gold);
  background: #fff;
  border-radius: 0 10px 10px 0;
  padding: 20px 24px;
  margin: 28px 0;
  font-size: 1.12rem;
  color: var(--ink);
}
.pull p:last-child { margin-bottom: 0; }

.table-wrap { overflow-x: auto; margin: 24px 0; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-size: 1rem;
}
table.data th {
  background: var(--box);
  color: #fff;
  font-family: var(--heading);
  text-align: left;
  padding: 12px 16px;
  white-space: nowrap;
}
table.data td { padding: 12px 16px; border-top: 1px solid var(--line); }
table.data td.num, table.data th.num { text-align: right; }

.calc { list-style: none; margin: 24px 0; padding: 22px 26px; background: #fff;
  border: 1px solid var(--line); border-radius: 12px; }
.calc li { display: flex; justify-content: space-between; gap: 18px; margin: 0;
  padding: 9px 0; border-top: 1px solid var(--line); }
.calc li:first-child { border-top: 0; }
.calc li.total { border-top: 2px solid var(--box); font-weight: 700; color: var(--ink); margin-top: 4px; padding-top: 12px; }
.calc .amt { font-variant-numeric: tabular-nums; white-space: nowrap; }

.faq { margin-top: 44px; }
.qa { background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 22px 26px; margin-bottom: 16px; }
.qa h3 { margin: 0 0 8px; font-size: 1.1rem; }
.qa p { margin: 0; color: var(--muted); }

.guide-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.guide-card { display: flex; flex-direction: column; text-decoration: none; }
.guide-card h3 { margin-bottom: 10px; }
.guide-card p { flex: 1; }
.guide-card .more { font-family: var(--heading); font-weight: 700; color: var(--sage-light); }
a.guide-card:hover { background: var(--box-deep); }

@media (max-width: 760px) { .guide-cards { grid-template-columns: 1fr; } }

/* ---------- About ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 64px;
  align-items: start;
}
.prose p { font-size: 1.08rem; }
.prose p:first-child { font-size: 1.25rem; color: var(--ink); }

.portrait {
  width: 260px;
  height: 260px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 22%;   /* keeps the face centred in the circle */
  background: linear-gradient(160deg, var(--box), var(--box-deep));
  border: 6px solid #fff;
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  color: var(--on-box-muted);
  font-size: 0.95rem;
  text-align: center;
  padding: 36px;
}

.glance {
  background: var(--box);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.glance h3 { font-size: 1.1rem; margin-bottom: 14px; color: var(--sage-light); }
.glance ul { list-style: none; padding: 0; margin: 0; }
.glance li {
  padding: 11px 0;
  border-top: 1px solid var(--box-line);
  font-size: 0.98rem;
  line-height: 1.45;
}
.glance li:first-child { border-top: 0; padding-top: 0; }
.glance li strong { display: block; color: #fff; font-family: var(--heading); }
.glance li span { color: var(--on-box-muted); }

.clients {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}
.clients .note { padding: 24px; display: flex; flex-direction: column; }
.clients .note h3 { font-size: 1.1rem; }
.clients .note p { flex: 1; margin-bottom: 12px; }
.clients .note a { color: var(--sage-light); font-family: var(--heading); font-weight: 700; font-size: 0.95rem; text-decoration: none; }

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: start;
}
.contact-card {
  background: var(--box);
  border-radius: 16px;
  padding: 34px;
  box-shadow: var(--shadow);
}
.contact-card dl { margin: 0 0 28px; }
.contact-card dt {
  font-family: var(--heading);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 20px;
}
.contact-card dt:first-child { margin-top: 0; }
.contact-card dd { margin: 4px 0 0; font-size: 1.08rem; }
.contact-card a:not(.btn) { color: var(--sage-light); }
.contact-card .btn { width: 100%; text-align: center; }

.steps { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 24px 58px;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--box);
  color: var(--sage-light);
  font-family: var(--heading);
  font-weight: 800;
  display: grid;
  place-items: center;
}
.steps strong { display: block; color: var(--ink); font-family: var(--heading); }
.steps span { color: var(--muted); font-size: 1rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--chrome);
  color: var(--on-box-muted);
  padding: 56px 0 32px;
  font-size: 0.96rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 36px;
  margin-bottom: 40px;
}
.site-footer .brand { margin-bottom: 14px; }
.site-footer h4 {
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--on-box-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--box-line);
  padding-top: 22px;
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .nav { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 960px) {
  .hero-grid,
  .teaser,
  .about-grid,
  .contact-grid,
  .two-col,
  .cfo { grid-template-columns: 1fr; gap: 36px; }
  .cfo { padding: 36px 28px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .industries,
  .statements { grid-template-columns: 1fr; max-width: 560px; margin-left: auto; margin-right: auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .clients { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--chrome);
    padding: 8px 24px 20px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .nav.open { display: flex; }
  .nav > a,
  .dropdown-toggle { padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
  .nav a[aria-current="page"],
  .dropdown-toggle.is-active { border-bottom-color: rgba(255, 255, 255, 0.1); }
  .dropdown-toggle { width: 100%; justify-content: space-between; font-size: 1rem; }
  .has-dropdown:hover .dropdown,
  .has-dropdown:focus-within .dropdown { display: none; }
  .has-dropdown.open .dropdown { display: block; }
  .dropdown { position: static; padding: 6px 0 6px 12px; min-width: 0; }
  .dropdown-inner { background: none; border: 0; box-shadow: none; padding: 0; }
  .nav .btn { margin-top: 16px; text-align: center; border-bottom: 0; }
}

@media (max-width: 760px) {
  .page-header-grid { grid-template-columns: 1fr; gap: 32px; }
  .page-header-grid .portrait { order: -1; width: 180px; height: 180px; padding: 24px; font-size: 0.85rem; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
  .page-header { padding: 56px 0 44px; }
  .feature-grid,
  .notes-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .problem-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 1.08rem; }
  .box { padding: 28px 24px; }
}
