/* ============================================================
   SmartHound Accounting — shared site foundation
   Tokens verbatim from the SmartHound Design System (_ds/tokens).
   Loaded by every page; page-specific styles live inline per page.
   ============================================================ */
:root {
  /* Base palette */
  --sh-warm-white: #faf7f0;
  --sh-warm-white-2: #f5f1e8;
  --sh-linen: #efe9dc;
  --sh-linen-deep: #e6dece;
  --sh-gold: #c2a15a;
  --sh-gold-deep: #a8863f;
  --sh-gold-soft: #d9c48c;
  --sh-gold-wash: #f3ebd8;
  --sh-charcoal: #3d4043;
  --sh-charcoal-deep: #2c2e30;
  --sh-charcoal-soft: #55585b;
  --sh-navy: #1e3a5f;
  --sh-navy-deep: #16293f;
  --sh-navy-soft: #35547c;
  --sh-navy-deepest: #0f1d2d; /* header/footer chrome */
  --sh-soft-gray: #d8d4cb;
  --sh-soft-gray-2: #c3beb2;
  --sh-mute: #6f7174;
  --sh-sage: #8a9a82;
  --sh-sage-soft: #dfe4d9;
  --sh-wood: #9c7a53;
  --sh-white: #ffffff;
  --sh-black: #1a1c1d;

  /* Semantic — surfaces */
  --surface-page: var(--sh-warm-white);
  --surface-page-alt: var(--sh-warm-white-2);
  --surface-card: var(--sh-white);
  --surface-panel: var(--sh-linen);
  --surface-inverse: var(--sh-charcoal);
  --surface-inverse-deep: var(--sh-charcoal-deep);
  --surface-gold-wash: var(--sh-gold-wash);

  /* Semantic — text */
  --text-heading: var(--sh-charcoal-deep);
  --text-body: var(--sh-charcoal);
  --text-muted: var(--sh-mute);
  --text-on-dark: var(--sh-warm-white);
  --text-on-dark-muted: #b4b3ab;
  --text-gold: var(--sh-gold-deep);
  --text-link: var(--sh-navy);
  --text-link-hover: var(--sh-navy-deep);

  /* Accents & borders */
  --accent-primary: var(--sh-navy);
  --accent-gold: var(--sh-gold);
  --divider-gold: var(--sh-gold);
  --border-subtle: var(--sh-soft-gray);
  --border-strong: var(--sh-soft-gray-2);
  --border-gold: var(--sh-gold);

  /* Feedback */
  --feedback-success: #4f7a52;
  --feedback-success-soft: #e2ebe0;
  --feedback-warning: var(--sh-gold-deep);
  --feedback-error: #a2483d;
  --feedback-error-soft: #f2e2df;
  --feedback-info: var(--sh-navy);

  /* Typography */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;
  --radius-pill: 999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(45,46,48,0.06);
  --shadow-sm: 0 2px 6px rgba(45,46,48,0.07);
  --shadow-md: 0 6px 18px rgba(45,46,48,0.08);
  --shadow-lg: 0 16px 40px rgba(45,46,48,0.10);
  --shadow-xl: 0 28px 64px rgba(45,46,48,0.13);
  --shadow-inset: inset 0 1px 2px rgba(45,46,48,0.06);
  --ring-focus: 0 0 0 3px rgba(30,58,95,0.28);

  /* Motion */
  --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 120ms;
  --dur-base: 200ms;
  --dur-slow: 340ms;
  --dur-slower: 560ms;
}

/* ---------------- Base ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
::selection { background: var(--sh-gold-soft); color: var(--sh-charcoal-deep); }
:focus-visible { outline: none; box-shadow: var(--ring-focus); border-radius: var(--radius-xs); }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }

/* ---------------- Shared utilities ---------------- */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.eyebrow {
  display: inline-block; font-family: var(--font-body); font-weight: 600;
  font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-gold);
}
.eyebrow.on-dark { color: var(--sh-gold-soft); }
.divider { width: 56px; height: 2px; background: var(--sh-gold); border: 0; border-radius: 999px; }
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section-head h2 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(28px, 4.4vw, 40px);
  letter-spacing: -0.02em; color: var(--sh-charcoal-deep); line-height: 1.15;
}
.section-head .divider { margin: 16px auto 22px; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; text-decoration: none;
  border-radius: var(--radius-pill); cursor: pointer; border: 1.5px solid transparent;
  transition: background var(--dur-base) var(--ease-standard), color var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.btn i, .btn svg { width: 18px; height: 18px; }
.btn-gold { background: var(--sh-gold); color: var(--sh-charcoal-deep); border-color: var(--sh-gold); }
.btn-gold:hover { background: var(--sh-gold-deep); border-color: var(--sh-gold-deep); }
.btn-navy { background: var(--sh-navy); color: var(--text-on-dark); border-color: var(--sh-navy); }
.btn-navy:hover { background: var(--sh-navy-deep); border-color: var(--sh-navy-deep); }
.btn-navy-outline { background: transparent; color: var(--sh-navy); border-color: var(--sh-navy); }
.btn-navy-outline:hover { background: var(--sh-navy); color: var(--text-on-dark); }
.btn-lg { font-size: 16px; padding: 16px 30px; }
.btn-md { font-size: 16px; padding: 15px 30px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--sh-navy-deepest);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 2px 14px rgba(15, 29, 45, 0.22);
  font-family: var(--font-body);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1240px; margin: 0 auto; padding: 12px 32px; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { height: 46px; width: 46px; border-radius: 50%; object-fit: cover; }
.brand .wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.brand .wordmark .name { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff; letter-spacing: 0.01em; }
.brand .wordmark .sub { font-family: var(--font-body); font-weight: 600; font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sh-gold-soft); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a.link {
  font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, 0.82); text-decoration: none;
  letter-spacing: 0.01em; padding-bottom: 3px; border-bottom: 1.5px solid transparent;
  transition: color var(--dur-base), border-color var(--dur-base);
}
.nav a.link:hover { color: #fff; border-bottom-color: var(--sh-gold); }
.nav a.link.active { color: var(--sh-gold); border-bottom-color: var(--sh-gold); }
.nav .btn { font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 13px 22px; border-radius: var(--radius-md); gap: 8px; }

/* ---------------- Image dropzone (founder photo, CTA bg, resource images) ---------------- */
.img-slot { position: relative; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: var(--sh-linen); color: var(--sh-charcoal-soft); cursor: pointer; overflow: hidden; }
.img-slot.on-dark { background: rgba(20,22,24,0.55); color: var(--text-on-dark-muted); }
.img-slot .slot-ph { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: 13.5px; font-weight: 500; text-align: center; padding: 24px; pointer-events: none; }
.img-slot .slot-ph i { width: 26px; height: 26px; opacity: 0.7; }
.img-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------- Footer (navy) ---------------- */
.site-footer { background: var(--sh-navy-deepest); color: var(--text-on-dark); font-family: var(--font-body); }
.site-footer .inner { max-width: 1240px; margin: 0 auto; padding: 72px 32px 34px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.25fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .row { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-brand img { height: 50px; width: 50px; border-radius: 50%; background: var(--sh-white); object-fit: cover; }
.footer-brand .wordmark { display: flex; flex-direction: column; line-height: 1.05; }
.footer-brand .wordmark .name { font-family: var(--font-display); font-weight: 700; font-size: 21px; color: #fff; letter-spacing: 0.01em; }
.footer-brand .wordmark .sub { font-family: var(--font-body); font-weight: 600; font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--sh-gold-soft); margin-top: 4px; }
.footer-brand .mission { font-size: 14px; line-height: 1.7; color: var(--text-on-dark-muted); margin: 0; max-width: 300px; }
.footer-col .head { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sh-gold); margin-bottom: 18px; }
.footer-col .links { display: flex; flex-direction: column; gap: 11px; }
.footer-col .links a, .footer-col .links span { font-size: 14.5px; color: var(--text-on-dark-muted); text-decoration: none; transition: color var(--dur-base); }
.footer-col .links a:hover { color: var(--sh-gold-soft); }
.connect-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.connect-list li { display: flex; align-items: center; gap: 11px; font-size: 14.5px; color: var(--text-on-dark-muted); }
.connect-list li i { width: 17px; height: 17px; color: var(--sh-gold); flex-shrink: 0; }
.connect-list a { color: var(--text-on-dark-muted); text-decoration: none; transition: color var(--dur-base); }
.connect-list a:hover { color: var(--sh-gold-soft); }
.socials { display: flex; gap: 12px; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.22); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: border-color var(--dur-base), background var(--dur-base), color var(--dur-base); }
.socials a:hover { border-color: var(--sh-gold); background: var(--sh-gold); color: var(--sh-navy-deepest); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 26px; gap: 24px; flex-wrap: wrap; }
.footer-bottom .copy { font-size: 13px; color: var(--text-on-dark-muted); }
.footer-bottom .legal { display: flex; align-items: center; gap: 20px; }
.footer-bottom .legal a { font-size: 13px; color: var(--text-on-dark-muted); text-decoration: none; transition: color var(--dur-base); }
.footer-bottom .legal a:hover { color: var(--sh-gold-soft); }

/* ---------------- Shared responsive ---------------- */
@media (max-width: 980px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 860px) {
  .nav a.link { display: none; }
}
@media (max-width: 560px) {
  .wrap, .site-header .bar, .site-footer .inner { padding-left: 20px; padding-right: 20px; }
  .section { padding: 68px 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
