/* Einstein Accounting — design system
   Charcoal / navy / white, sparse gold. Typography-forward. */

:root {
  --navy: #0a1628;
  --navy-mid: #132238;
  --charcoal: #1c1c1c;
  --ink: #121212;
  --slate: #3d4550;
  --muted: #6b7280;
  --line: #e4e6ea;
  --line-strong: #c8ccd4;
  --paper: #ffffff;
  --paper-soft: #f7f6f3;
  --gold: #b8975a;
  --gold-deep: #9a7b42;
  --gold-wash: rgba(184, 151, 90, 0.12);
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", system-ui, sans-serif;
  --measure: 40rem;
  --wide: 72rem;
  --pad: clamp(1.25rem, 4vw, 2.5rem);
  --header-h: 4.25rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--gold-deep); }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2.5rem, 5.5vw, 3.75rem); font-weight: 400; }
h2 { font-size: clamp(1.85rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: clamp(1.15rem, 2vw, 1.3rem);
  line-height: 1.55;
  color: var(--slate);
  max-width: 36rem;
}

.eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}

.container {
  width: min(100% - (var(--pad) * 2), var(--wide));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - (var(--pad) * 2), 42rem);
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 0 rgba(10, 22, 40, 0.03);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1.5rem;
}

.logo {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  text-decoration: none;
  color: var(--navy);
  flex-shrink: 0;
}

.logo:hover { color: var(--navy); }

.logo__mark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1;
}

.logo__sub {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.75rem;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.nav a:hover,
.nav a[aria-current="page"] { color: var(--navy); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  background: var(--navy);
  color: var(--paper) !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: background 0.2s var(--ease);
}

.nav__cta:hover { background: var(--navy-mid); color: var(--paper) !important; }

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--navy);
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: var(--navy);
}
.nav-toggle span::before { top: -5px; }
.nav-toggle span::after { top: 5px; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem 0 1rem;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 0.85rem var(--pad);
    border-top: 1px solid var(--line);
  }
  .nav__cta {
    margin: 0.75rem var(--pad) 0;
    justify-content: center;
  }
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.btn--primary {
  background: var(--navy);
  color: var(--paper);
  border-color: var(--navy);
}
.btn--primary:hover { background: var(--navy-mid); color: var(--paper); }

.btn--ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--gold {
  background: transparent;
  color: var(--gold-deep);
  border-color: var(--gold);
}
.btn--gold:hover {
  background: var(--gold-wash);
  color: var(--gold-deep);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: 2rem;
}

/* ——— Hero ——— */
.hero {
  padding: clamp(3.5rem, 10vw, 7rem) 0 clamp(3rem, 8vw, 5.5rem);
  border-bottom: 1px solid var(--line);
}

.hero--split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 6vw, 5rem);
  align-items: end;
}

@media (max-width: 800px) {
  .hero--split { grid-template-columns: 1fr; }
}

.hero__aside {
  border-left: 1px solid var(--line);
  padding-left: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: 0.35rem;
}

.hero__aside p {
  font-size: 0.95rem;
  color: var(--slate);
  margin-bottom: 1.25rem;
}

.hero__stat {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 1.5rem;
}

.hero__stat strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 400;
  color: var(--navy);
  line-height: 1;
}

.hero__stat span {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Sections ——— */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.section--soft { background: var(--paper-soft); }
.section--navy {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.88);
}
.section--navy h2,
.section--navy h3 { color: var(--paper); }
.section--navy .eyebrow { color: var(--gold); }
.section--navy a { color: var(--gold); }
.section--navy a:hover { color: #d4b878; }

.section-head {
  max-width: 36rem;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}

.section-head--row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 2rem;
  max-width: none;
}
.section-head--row > div { max-width: 36rem; }

@media (max-width: 700px) {
  .section-head--row { flex-direction: column; align-items: start; }
}

.rule {
  width: 2.5rem;
  height: 1px;
  background: var(--gold);
  border: 0;
  margin: 0 0 1.5rem;
}

/* ——— Service grid (editorial, not cards) ——— */
.service-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-top: 1px solid var(--line);
}

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

.service-list__item {
  display: block;
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: background 0.2s var(--ease);
}

.service-list__item:nth-child(odd) { padding-right: 2rem; border-right: 1px solid var(--line); }
@media (max-width: 700px) {
  .service-list__item:nth-child(odd) { padding-right: 0; border-right: 0; }
}

.service-list__item:hover { background: transparent; }
.service-list__item:hover h3 { color: var(--gold-deep); }

.service-list__num {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-deep);
  margin-bottom: 0.65rem;
}

.service-list__item h3 {
  margin-bottom: 0.5rem;
  font-size: 1.45rem;
}

.service-list__item p {
  font-size: 0.95rem;
  color: var(--slate);
  margin: 0;
  max-width: 28rem;
}

.service-list__arrow {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
}

/* ——— Principles / about strips ——— */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
  .principles { grid-template-columns: 1fr; }
}

.principle {
  padding: 2rem 1.75rem 2rem 0;
  border-bottom: 1px solid var(--line);
}
.principle:not(:last-child) {
  border-right: 1px solid var(--line);
  padding-right: 2rem;
  margin-right: 0.5rem;
}
@media (max-width: 800px) {
  .principle:not(:last-child) { border-right: 0; padding-right: 0; margin-right: 0; }
}

.principle h3 { margin-bottom: 0.65rem; }
.principle p { color: var(--slate); font-size: 0.975rem; }

/* ——— Insights ——— */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

@media (max-width: 800px) {
  .insight-grid { grid-template-columns: 1fr; }
}

.insight-card {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 2rem 0;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
}
.insight-card:not(:last-child) {
  border-right: 1px solid var(--line);
  padding-right: 2rem;
  margin-right: 0.25rem;
}
@media (max-width: 800px) {
  .insight-card:not(:last-child) { border-right: 0; padding-right: 0; margin-right: 0; }
}

.insight-card__meta {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.insight-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  transition: color 0.2s;
}
.insight-card:hover h3 { color: var(--gold-deep); }

.insight-card p {
  font-size: 0.95rem;
  color: var(--slate);
  flex: 1;
}

/* ——— CTA band ——— */
.cta-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}
@media (max-width: 700px) {
  .cta-band { grid-template-columns: 1fr; }
}

/* ——— Page hero (inner) ——— */
.page-hero {
  padding: clamp(3rem, 7vw, 4.5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.page-hero .lede { margin-top: 0.5rem; }

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb span { margin: 0 0.4rem; color: var(--line-strong); }

/* ——— Content prose ——— */
.prose {
  max-width: var(--measure);
}
.prose h2 { margin-top: 2.5rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1.25em;
  color: var(--slate);
}
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--gold-deep); }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 16rem;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
@media (max-width: 800px) {
  .content-grid { grid-template-columns: 1fr; }
}

.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  padding: 1.5rem;
  background: var(--paper-soft);
  border-top: 2px solid var(--gold);
}

.sidebar h4 {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}
.sidebar li { margin-bottom: 0.55rem; }
.sidebar a {
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}
.sidebar a:hover { color: var(--gold-deep); }

.sidebar__note {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.5;
}

/* ——— Split about ——— */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
}
@media (max-width: 700px) {
  .split { grid-template-columns: 1fr; }
}

.quote-block {
  border-left: 2px solid var(--gold);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2rem 0;
}
.quote-block p {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  line-height: 1.35;
  color: var(--navy);
  margin: 0;
}
.quote-block cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ——— Form ——— */
.form {
  max-width: 32rem;
}

.form-row {
  margin-bottom: 1.35rem;
}

.form label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.45rem;
}

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: 0;
  transition: border-color 0.2s;
}

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--navy);
}

.form textarea { min-height: 9rem; resize: vertical; }

.form__hint {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 1rem;
}

.form-status {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--paper-soft);
  border-left: 2px solid var(--gold);
  font-size: 0.95rem;
  color: var(--slate);
}
.form-status.is-visible { display: block; }

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 540px) {
  .form-grid-2 { grid-template-columns: 1fr; }
}

/* ——— Careers list ——— */
.role-list { border-top: 1px solid var(--line); }
.role {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}
.role h3 { margin: 0; font-size: 1.35rem; }
.role:hover h3 { color: var(--gold-deep); }
.role__meta {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  margin-top: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem 2rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo__mark { color: var(--paper); font-size: 1.5rem; }
.footer-brand .logo__sub { color: rgba(255, 255, 255, 0.45); }
.footer-brand p {
  margin-top: 1.25rem;
  font-size: 0.9rem;
  max-width: 18rem;
  line-height: 1.55;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  font-size: 0.925rem;
}
.footer-col a:hover { color: var(--gold); }

.footer-bottom {
  padding-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-disclaimer {
  max-width: 48rem;
  margin-top: 1.5rem;
  font-size: 0.75rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.38);
}

.footer-legal a {
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  margin-left: 1.25rem;
}
.footer-legal a:hover { color: var(--gold); }

/* ——— Utility ——— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
