/* ============================================================
   Arthwise Partners — design tokens & shared components
   ============================================================ */

:root {
  /* ---- light theme (default) ---- */
  /* brand colors sampled directly from the real Arthwise Partners logo mark */
  --ink: #142420;
  --ink-soft: #4b5b54;
  --ink-faint: #7c8a83;
  --paper: #eef1ec;
  --surface: #ffffff;
  --surface-2: #e4e9e2;
  --line: #d3dbd2;
  --accent: #4a8a4d;
  --accent-strong: #35692f;
  --accent-soft: rgba(74, 138, 77, 0.12);
  --deep: #0f545f;
  --on-deep: #f3f1e8;
  --on-deep-soft: #c3d6d3;
  --good: #3f7a5c;
  --bad: #b3402a;
  --shadow: 0 1px 2px rgba(15, 30, 24, 0.04), 0 8px 24px -12px rgba(15, 30, 24, 0.16);

  --font-display: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  --font-body: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1180px;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef1ec;
    --ink-soft: #a9b7ae;
    --ink-faint: #71827a;
    --paper: #0a1f1d;
    --surface: #0f2b2c;
    --surface-2: #143534;
    --line: #204542;
    --accent: #7fc17a;
    --accent-strong: #9edc98;
    --accent-soft: rgba(127, 193, 122, 0.16);
    --deep: #04100f;
    --on-deep: #eef1ec;
    --on-deep-soft: #a9b7ae;
    --good: #6fbd94;
    --bad: #e2705a;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px -12px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --ink: #eef1ec;
  --ink-soft: #a9b7ae;
  --ink-faint: #71827a;
  --paper: #0a1f1d;
  --surface: #0f2b2c;
  --surface-2: #143534;
  --line: #204542;
  --accent: #7fc17a;
  --accent-strong: #9edc98;
  --accent-soft: rgba(127, 193, 122, 0.16);
  --deep: #04100f;
  --on-deep: #eef1ec;
  --on-deep-soft: #a9b7ae;
  --good: #6fbd94;
  --bad: #e2705a;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 28px -12px rgba(0, 0, 0, 0.55);
}

:root[data-theme="light"] {
  --ink: #142420;
  --ink-soft: #4b5b54;
  --ink-faint: #7c8a83;
  --paper: #eef1ec;
  --surface: #ffffff;
  --surface-2: #e4e9e2;
  --line: #d3dbd2;
  --accent: #4a8a4d;
  --accent-strong: #35692f;
  --accent-soft: rgba(74, 138, 77, 0.12);
  --deep: #0f545f;
  --on-deep: #f3f1e8;
  --on-deep-soft: #c3d6d3;
  --good: #3f7a5c;
  --bad: #b3402a;
  --shadow: 0 1px 2px rgba(15, 30, 24, 0.04), 0 8px 24px -12px rgba(15, 30, 24, 0.16);
}

/* ---------------------------------------------------------- */
/* base */
/* ---------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
  letter-spacing: -0.01em;
}

p { margin: 0; }

button { font: inherit; }

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

section { padding: 88px 0; }
@media (max-width: 760px) { section { padding: 56px 0; } }

.section-alt { background: var(--surface-2); }

img, svg { color-scheme: light dark; }

/* focus visibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------------------------------------------------------- */
/* type utilities */
/* ---------------------------------------------------------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 20px; height: 1px; background: var(--accent); display: inline-block; }

h1 { font-size: clamp(34px, 4.8vw, 56px); }
h2 { font-size: clamp(26px, 3.4vw, 36px); }
h3 { font-size: 20px; }

.lede {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 58ch;
  margin-top: 16px;
}

.section-header { max-width: 680px; margin-bottom: 48px; }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .eyebrow { justify-content: center; }
.section-header.center .eyebrow::before { display: none; }

.tabular { font-variant-numeric: tabular-nums; }

/* ---------------------------------------------------------- */
/* buttons */
/* ---------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: var(--deep); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost-light { background: transparent; border-color: rgba(255,255,255,0.35); color: var(--on-deep); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; }

/* ---------------------------------------------------------- */
/* header / nav */
/* ---------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo img { width: 38px; height: 38px; border-radius: 9px; flex: none; }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--ink); letter-spacing: -0.01em; }
.logo-word span { color: var(--accent); }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent-strong); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav-right { display: flex; align-items: center; gap: 14px; }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  flex: none;
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center; justify-content: center;
  cursor: pointer;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 12px 28px 24px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
  }
  .nav-links a { padding: 10px 0; width: 100%; }
  body.nav-open .nav-links { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
}

/* ---------------------------------------------------------- */
/* hero */
/* ---------------------------------------------------------- */

.hero {
  padding: 72px 0 96px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 48px 0 64px; }
  .hero-media { order: -1; }
}

.hero h1 { max-width: 14ch; }
.hero .lede { margin-top: 20px; margin-bottom: 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-media {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(5,15,11,0.55));
}
.hero-media-caption {
  position: absolute; left: 20px; bottom: 18px; z-index: 1;
  color: #f3f1e8;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------------------------------------------------------- */
/* stat strip (ledger row) */
/* ---------------------------------------------------------- */

.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-strip .stat { padding: 32px 28px; border-left: 1px solid var(--line); }
.stat-strip .stat:first-child { border-left: none; }
.stat-num { font-family: var(--font-mono); font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; color: var(--accent-strong); }
.stat-label { color: var(--ink-soft); font-size: 13.5px; margin-top: 6px; }
@media (max-width: 760px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .stat-strip .stat:nth-child(2n+1) { border-left: none; }
  .stat-strip .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

/* ---------------------------------------------------------- */
/* cards: services / values / steps / team / testimonials */
/* ---------------------------------------------------------- */

.grid { display: grid; gap: 24px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.icon-badge {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-strong);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-badge svg { width: 22px; height: 22px; }

.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--ink-soft); font-size: 15px; }

.value-card { display: flex; gap: 18px; align-items: flex-start; padding: 0; border: none; background: none; }
.value-card .icon-badge { margin-bottom: 0; flex: none; }
.value-card h3 { margin-bottom: 6px; font-size: 17px; }
.value-card p { color: var(--ink-soft); font-size: 14.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step-index { font-family: var(--font-mono); font-size: 13px; color: var(--accent); letter-spacing: 0.06em; margin-bottom: 10px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 14.5px; }

.team-card { text-align: center; padding: 32px 20px; }
.avatar-initials {
  width: 76px; height: 76px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  background: var(--deep);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.team-card h3 { font-size: 16.5px; }
.team-card .role { color: var(--accent-strong); font-size: 13px; font-weight: 600; margin-top: 4px; }
.team-card .team-note { color: var(--ink-faint); font-size: 12.5px; margin-top: 12px; font-style: italic; }

.testimonial-card { position: relative; }
.testimonial-quote { font-size: 16px; color: var(--ink); line-height: 1.6; }
.testimonial-quote::before { content: open-quote; color: var(--accent); font-family: var(--font-display); }
.testimonial-quote::after { content: close-quote; color: var(--accent); font-family: var(--font-display); }
.testimonial-foot { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.testimonial-foot .avatar-initials { width: 44px; height: 44px; font-size: 14px; margin: 0; }
.testimonial-name { font-weight: 700; font-size: 14.5px; }
.testimonial-rating { color: var(--accent); font-size: 13px; letter-spacing: 1px; }

/* ---------------------------------------------------------- */
/* deep / banner sections */
/* ---------------------------------------------------------- */

.banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--deep);
  color: var(--on-deep);
  padding: 64px 48px;
  text-align: center;
}
.banner-bg { position: absolute; inset: 0; object-fit: cover; opacity: 0.28; }
.banner-inner { position: relative; z-index: 1; max-width: 620px; margin: 0 auto; }
.banner h2 { color: var(--on-deep); }
.banner p { color: var(--on-deep-soft); margin: 16px 0 30px; }

.page-banner {
  position: relative;
  padding: 64px 0 56px;
  background: var(--deep);
  color: var(--on-deep);
  overflow: hidden;
}
.page-banner-bg { position: absolute; inset: 0; object-fit: cover; opacity: 0.22; }
.page-banner .container { position: relative; z-index: 1; }
.page-banner .eyebrow { color: var(--accent-strong); }
.page-banner h1 { color: var(--on-deep); font-size: clamp(30px, 4.2vw, 44px); max-width: 20ch; }
.breadcrumb { margin-top: 18px; font-family: var(--font-mono); font-size: 12.5px; color: var(--on-deep-soft); }
.breadcrumb a { color: var(--on-deep-soft); }
.breadcrumb a:hover { color: var(--accent-strong); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.5; }

/* ---------------------------------------------------------- */
/* forms */
/* ---------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.field input, .field textarea, .field select {
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px) { .field-row { grid-template-columns: 1fr; } }

.form-note {
  font-size: 13px;
  color: var(--ink-faint);
  background: var(--surface-2);
  border: 1px dashed var(--line);
  padding: 12px 14px;
  border-radius: var(--radius);
  margin-top: 4px;
}

.form-status { font-size: 14.5px; margin-top: 16px; display: none; }
.form-status.show { display: block; }
.form-status.ok { color: var(--good); }
.form-status.err { color: var(--bad); }

/* ---------------------------------------------------------- */
/* contact info list */
/* ---------------------------------------------------------- */

.info-list { display: flex; flex-direction: column; gap: 22px; }
.info-item { display: flex; gap: 16px; align-items: flex-start; }
.info-item .icon-badge { margin-bottom: 0; flex: none; }
.info-item h3 { font-size: 15px; margin-bottom: 4px; }
.info-item p, .info-item a { color: var(--ink-soft); font-size: 14.5px; }
.info-item a:hover { color: var(--accent-strong); }

/* ---------------------------------------------------------- */
/* disclosure bar (regulatory placeholder) */
/* ---------------------------------------------------------- */

.disclosure-bar {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 14px 0;
}
.disclosure-bar .container { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.disclosure-bar .tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-weight: 700;
  flex: none;
}
.disclosure-bar p { font-size: 13px; color: var(--ink-faint); font-style: italic; }

/* ---------------------------------------------------------- */
/* footer */
/* ---------------------------------------------------------- */

.site-footer { background: var(--deep); color: var(--on-deep-soft); padding: 72px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .logo-word { color: var(--on-deep); }
.footer-brand p { margin-top: 16px; font-size: 14px; max-width: 32ch; color: var(--on-deep-soft); }
.footer-col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-deep); margin-bottom: 18px; font-weight: 600; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 14px; color: var(--on-deep-soft); }
.footer-col a:hover { color: var(--accent-strong); }
.footer-col address { font-style: normal; font-size: 14px; color: var(--on-deep-soft); line-height: 1.8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px;
}
.footer-bottom p { font-size: 13px; color: var(--on-deep-soft); }
.footer-bottom .socials { display: flex; gap: 14px; }
.footer-bottom .socials a {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
}
.footer-bottom .socials svg { width: 15px; height: 15px; }
.footer-bottom .socials a:hover { border-color: var(--accent); color: var(--accent-strong); }

/* ---------------------------------------------------------- */
/* misc pages: blog placeholder */
/* ---------------------------------------------------------- */

.empty-state {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
  padding: 40px 0;
}
.empty-state .icon-badge { margin: 0 auto 22px; width: 60px; height: 60px; }
.empty-state .icon-badge svg { width: 28px; height: 28px; }
.empty-state h2 { margin-bottom: 12px; }
.empty-state p { color: var(--ink-soft); }
.empty-state .btn { margin-top: 28px; }

/* reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
