/* ============================================================
   Astute Commercial Solutions — styles.css
   Palette: ink #1C2B33 / paper #F7F7F4 / brass #A8813C
            slate #5C6E76 / line #DEDFD9
   Type:    Bricolage Grotesque (display) / Public Sans (body)
            IBM Plex Mono (labels)
   ============================================================ */

:root {
  --ink: #0f1d2b;
  --ink-soft: #333b42;
  --paper: #f7f7f4;
  --paper-raise: #ffffff;
  --brass: #af8735;
  --brass-deep: #8f6d2a;
  --slate: #6b7176;
  --line: #e6e8ea;
  --line-dark: #333b42;

  --font-display: "Nunito Sans", -apple-system, sans-serif;
  --font-body: "Nunito Sans", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Nunito Sans", -apple-system, sans-serif;

  --max: 1120px;
  --pad: clamp(20px, 4vw, 48px);
  --radius: 4px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 247, 244, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  text-decoration: none; display: flex; align-items: center; gap: 12px;
}
.brand-mark { width: 40px; height: 40px; flex: none; border-radius: 5px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-word {
  font-family: var(--font-display); font-weight: 800; font-size: 17px;
  letter-spacing: 0.22em; color: var(--ink);
}
.brand-tag {
  font-weight: 600; font-size: 8px; letter-spacing: 0.26em;
  color: var(--brass); margin-top: 4px;
}
.nav { display: flex; gap: 28px; align-items: center; }
.nav a {
  text-decoration: none; font-size: 14.5px; font-weight: 500;
  color: var(--slate); padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--ink); border-bottom-color: var(--brass); }
.nav .cta-link {
  color: var(--paper); background: var(--ink);
  padding: 9px 18px; border-radius: var(--radius);
  border-bottom: none; font-weight: 600;
}
.nav .cta-link:hover { background: var(--ink-soft); color: var(--paper); }

/* mobile nav */
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; font-family: var(--font-mono); font-size: 13px; cursor: pointer; color: var(--ink); }
@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 0; padding: 8px var(--pad) 16px;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; width: 100%; border-bottom: 1px solid var(--line); }
  .nav .cta-link { margin-top: 12px; text-align: center; border-bottom: none; }
}

/* ---------- Shared elements ---------- */
.eyebrow {
  font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--brass-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brass); }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.015em; line-height: 1.12; }
h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }

.lede { font-size: clamp(17px, 2vw, 19.5px); color: var(--slate); max-width: 62ch; }

.section { padding: clamp(56px, 9vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head h2 { margin-bottom: 14px; max-width: 24ch; }

.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 13px 26px; border-radius: var(--radius);
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); }
.btn-ghost { border: 1px solid var(--line-dark); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-brass { background: var(--brass); color: #fff; }
.btn-brass:hover { background: var(--brass-deep); }

/* ---------- Hero (home) ---------- */
.hero { padding: clamp(64px, 11vw, 140px) 0 clamp(56px, 8vw, 100px); }
.hero .entry {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--slate);
  margin-bottom: 20px;
}
.hero .entry b { color: var(--brass-deep); font-weight: 500; }
.hero h1 {
  font-size: clamp(40px, 7vw, 74px); font-weight: 700;
  max-width: 17ch; margin-bottom: 10px;
}
.hero .definition {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: clamp(17px, 2.4vw, 22px); color: var(--slate);
  max-width: 46ch; margin-bottom: 28px;
}
.hero .definition .pos { font-family: var(--font-mono); font-style: normal; font-size: 0.75em; color: var(--brass-deep); margin-right: 6px; }
.hero .sub { max-width: 58ch; margin-bottom: 36px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Service grid ---------- */
.svc-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--line); gap: 1px;
}
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  background: var(--paper-raise); padding: 32px 30px 34px;
  display: flex; flex-direction: column; gap: 12px;
  text-decoration: none; transition: background 0.15s ease;
}
.svc:hover { background: #fdfdfb; }
.svc .svc-ref { font-family: var(--font-mono); font-size: 12px; color: var(--brass-deep); letter-spacing: 0.06em; }
.svc h3 { margin: 0; }
.svc p { color: var(--slate); font-size: 15px; }
.svc .more { font-size: 14px; font-weight: 600; color: var(--ink); margin-top: auto; }
.svc:hover .more { color: var(--brass-deep); }

/* ---------- Ledger strip (proof / stats placeholders) ---------- */
.ledger {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 720px) { .ledger { grid-template-columns: 1fr; } }
.ledger .cell { padding: 28px 26px; border-left: 1px solid var(--line); }
.ledger .cell:first-child { border-left: none; }
@media (max-width: 720px) {
  .ledger .cell { border-left: none; border-top: 1px solid var(--line); }
  .ledger .cell:first-child { border-top: none; }
}
.ledger .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--slate); margin-bottom: 6px; }
.ledger .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; }

/* ---------- Why / principles list ---------- */
.why-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 44px) clamp(28px, 5vw, 64px); }
@media (max-width: 720px) { .why-list { grid-template-columns: 1fr; } }
.why h3 { margin-bottom: 8px; display: flex; gap: 12px; align-items: baseline; }
.why h3 .mark { color: var(--brass); font-family: var(--font-mono); font-size: 14px; font-weight: 400; }
.why p { color: var(--slate); font-size: 15.5px; }

/* ---------- Case study placeholders ---------- */
.case-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 720px) { .case-grid { grid-template-columns: 1fr; } }
.case {
  background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px;
}
.case .tag { font-family: var(--font-mono); font-size: 12px; color: var(--brass-deep); letter-spacing: 0.06em; text-transform: uppercase; }
.case h3 { margin: 10px 0 8px; }
.case p { color: var(--slate); font-size: 15px; }
.case .placeholder-note {
  margin-top: 16px; font-family: var(--font-mono); font-size: 12px;
  color: #9aa3a0; border-top: 1px dashed var(--line); padding-top: 12px;
}

/* ---------- Dark CTA band ---------- */
.cta-band { background: var(--ink); color: var(--paper); border-radius: var(--radius); padding: clamp(40px, 6vw, 64px); }
.cta-band h2 { color: #fff; max-width: 22ch; margin-bottom: 12px; }
.cta-band p { color: #b9c4c9; max-width: 56ch; margin-bottom: 28px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(36px, 6vw, 64px); }
.page-hero .eyebrow { margin-bottom: 16px; }
.page-hero h1 { font-size: clamp(34px, 5.5vw, 56px); font-weight: 700; max-width: 20ch; margin-bottom: 16px; }

/* ---------- Services page detail ---------- */
.svc-detail { display: grid; grid-template-columns: 240px 1fr; gap: clamp(24px, 5vw, 72px); padding: clamp(36px, 6vw, 56px) 0; border-top: 1px solid var(--line); }
@media (max-width: 780px) { .svc-detail { grid-template-columns: 1fr; gap: 16px; } }
.svc-detail .side { position: sticky; top: 96px; align-self: start; }
@media (max-width: 780px) { .svc-detail .side { position: static; } }
.svc-detail .side .svc-ref { font-family: var(--font-mono); font-size: 12px; color: var(--brass-deep); letter-spacing: 0.06em; display: block; margin-bottom: 8px; }
.svc-detail .side h2 { font-size: clamp(24px, 3vw, 30px); }
.svc-detail .body p { margin-bottom: 16px; color: var(--ink-soft); }
.svc-detail .body ul { list-style: none; margin: 20px 0 0; }
.svc-detail .body li { padding: 12px 0 12px 26px; border-top: 1px solid var(--line); position: relative; font-size: 15.5px; color: var(--ink-soft); }
.svc-detail .body li::before { content: "—"; position: absolute; left: 0; color: var(--brass); }

/* ---------- About page ---------- */
.founder { display: grid; grid-template-columns: 300px 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 780px) { .founder { grid-template-columns: 1fr; } }
.founder .photo {
  aspect-ratio: 4 / 5; border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, #e9eae4, #e9eae4 10px, #f1f2ec 10px, #f1f2ec 20px);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 12px; color: #9aa3a0; text-align: center; padding: 16px;
}
.founder .bio p { margin-bottom: 16px; color: var(--ink-soft); }
.founder .bio .name { font-family: var(--font-display); font-size: 26px; font-weight: 600; margin-bottom: 2px; }
.founder .bio .role { font-family: var(--font-mono); font-size: 13px; color: var(--brass-deep); margin-bottom: 20px; }

.timeline { border-left: 2px solid var(--line); margin-top: 8px; }
.timeline .t-item { padding: 0 0 26px 26px; position: relative; }
.timeline .t-item:last-child { padding-bottom: 0; }
.timeline .t-item::before {
  content: ""; position: absolute; left: -6px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--brass);
}
.timeline .t-year { font-family: var(--font-mono); font-size: 12.5px; color: var(--brass-deep); }
.timeline .t-item h3 { margin: 4px 0 4px; }
.timeline .t-item p { color: var(--slate); font-size: 15px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: start; }
@media (max-width: 780px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-info .row { padding: 18px 0; border-top: 1px solid var(--line); }
.contact-info .row:first-of-type { border-top: none; padding-top: 0; }
.contact-info .k { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--slate); margin-bottom: 4px; }
.contact-info .v { font-size: 16.5px; font-weight: 500; }
.contact-info .v a { text-decoration: none; border-bottom: 1px solid var(--brass); }
.contact-info .v a:hover { color: var(--brass-deep); }

.form { background: var(--paper-raise); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 4vw, 36px); }
.form .field { margin-bottom: 18px; }
.form label { display: block; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--slate); margin-bottom: 7px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; font-family: var(--font-body); font-size: 15.5px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--brass);
}
.form textarea { min-height: 130px; resize: vertical; }
.form .btn { width: 100%; border: none; cursor: pointer; font-family: var(--font-body); }
.form .note { font-size: 13px; color: var(--slate); margin-top: 12px; text-align: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink); color: #b9c4c9; margin-top: clamp(56px, 9vw, 104px); }
.site-footer .wrap { padding-top: 48px; padding-bottom: 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .brand-word { color: #fff; }
.site-footer p { font-size: 14px; max-width: 40ch; }
.site-footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: #7d8f97; margin-bottom: 14px; font-weight: 500; }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 9px; }
.site-footer a { color: #d5dde0; text-decoration: none; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-legal {
  border-top: 1px solid var(--line-dark); padding-top: 22px;
  font-family: var(--font-mono); font-size: 12px; color: #7d8f97;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

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