/* Calmspace Advisory — Boardroom design */
:root {
  --ink: #14181F;
  --ink-2: #3D434A;
  --muted: #5B6168;
  --paper: #FBFAF7;
  --white: #FFFFFF;
  --stone: #EFEDE7;
  --line: #E6E3DC;
  --accent: #1F4D3A;
  --accent-soft: #A9C9B8;
  --on-accent: #DCE8E1;
  --dark-line: #2E343C;
  --on-dark: #C3C8CC;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --max: 1280px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-sm { padding: 88px 0; }
.dark { background: var(--ink); color: #F3F4F2; }
.stone { background: var(--stone); }
.white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.accent-bg { background: var(--accent); color: var(--white); }

/* Type */
.eyebrow { margin: 0 0 18px; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.dark .eyebrow { color: var(--accent-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; }
.h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 1.0; letter-spacing: -0.025em; }
.h1 em, .h2 em { color: var(--accent); }
.dark .h2 em { color: var(--accent-soft); }
.h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; letter-spacing: -0.015em; }
.h3 { font-size: 28px; line-height: 1.18; font-weight: 500; }
.h4 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.lead { font-size: 19px; color: var(--ink-2); margin: 0; }
.dark .lead, .dark p { color: var(--on-dark); }
.muted { color: var(--muted); }
p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }

/* Buttons */
.btn { display: inline-block; text-decoration: none; padding: 15px 25px; border-radius: 2px; font-weight: 500; font-size: 16px; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn-primary { background: var(--accent); color: var(--white); }
.btn-primary:hover { background: #173B2C; color: var(--white); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--white); }
.btn-light { background: #F3F4F2; color: var(--ink); font-weight: 600; }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--white); font-weight: 600; }
.btn-dark:hover { background: #000; color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); position: sticky; top: 0; z-index: 10; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.brand { text-decoration: none; color: var(--ink); display: flex; align-items: baseline; gap: 10px; }
.brand-name { font-family: var(--serif); font-size: 28px; font-weight: 500; letter-spacing: -0.01em; }
.logo { height: 62px; width: auto; }
.logo-footer { height: 60px; width: auto; }
@media (max-width: 640px) { .logo { height: 42px; } }
.brand-tag { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--accent); }
.nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { color: var(--white); padding: 12px 20px; }
.nav .btn:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); border-radius: 2px; padding: 10px 14px; font: inherit; font-size: 15px; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: 8px; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 14px; text-align: center; border-bottom: 0; }
}

/* Layout helpers */
.split { display: flex; flex-wrap: wrap; gap: 48px 72px; align-items: center; }
.split > * { flex: 1 1 440px; min-width: 0; }
.split-end { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-end; justify-content: space-between; margin-bottom: 56px; }
.split-end .h2 { max-width: 700px; }
.split-end p { max-width: 440px; margin: 0; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.photo { width: 100%; height: auto; object-fit: cover; border-radius: 4px; }
.ratio-43 { aspect-ratio: 4 / 3; }
.ratio-1610 { aspect-ratio: 16 / 10; }
.ratio-219 { aspect-ratio: 21 / 9; }

/* Hero */
.hero { padding: 80px 0 0; }
.hero-top { display: flex; flex-wrap: wrap; gap: 32px 64px; align-items: flex-end; justify-content: space-between; }
.hero-top > :first-child { flex: 999 1 620px; min-width: 0; }
.hero-top > :last-child { flex: 1 1 340px; min-width: 0; padding-bottom: 8px; }
.hero-top .lead { margin-bottom: 28px; }
.hero-media { position: relative; margin-top: 56px; }
.chips { position: absolute; left: 24px; right: 24px; bottom: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.chip { background: rgba(251,250,247,0.94); padding: 9px 15px; border-radius: 2px; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; }
.page-hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero .h1 { font-size: clamp(42px, 5.4vw, 76px); max-width: 960px; }
.page-hero .lead { max-width: 680px; margin-top: 28px; }
@media (max-width: 640px) { .ratio-219 { aspect-ratio: 4 / 3; } .chips { position: static; margin-top: 16px; } .chip { background: var(--stone); } }

/* Reference logos — subtle credibility strip */
.logos { padding: 56px 0 8px; }
.logos-label { margin: 0 0 22px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); text-align: center; }
.logos ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 56px; }
.logos li { display: flex; align-items: center; height: 44px; }
.logos img { max-height: 36px; max-width: 150px; width: auto; filter: grayscale(1); opacity: 0.6; transition: opacity .2s, filter .2s; }
.logos img:hover { filter: none; opacity: 1; }
.logo-text { font-family: var(--serif); font-size: 21px; color: #7A7F86; letter-spacing: -0.005em; white-space: nowrap; }

/* Cards */
.card-img .label { margin: 24px 0 6px; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.card-img .h3 { margin-bottom: 10px; font-size: 30px; }
.card-img p { color: var(--ink-2); }
.card-img a.more { display: inline-block; margin-top: 14px; font-weight: 500; font-size: 15px; }

/* Rows list */
.rows { border-top: 1px solid var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.row > :first-child { flex: 1 1 280px; margin: 0; }
.row > :last-child { flex: 2 1 340px; margin: 0; color: var(--ink-2); }
.row .h3 { font-size: 26px; }
.row a { text-decoration: none; color: var(--ink); }
.row a:hover { color: var(--accent); }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; }
.steps li { border-top: 1px solid var(--ink); padding-top: 24px; }
.dark .steps li { border-color: var(--accent-soft); }
.step-num { font-size: 13px; color: var(--accent); font-weight: 600; letter-spacing: 0.12em; margin-bottom: 12px; }
.dark .step-num { color: var(--accent-soft); }
.step-title { font-family: var(--serif); font-size: 28px; margin-bottom: 10px; }
.steps p { font-size: 16px; color: var(--ink-2); }
.dark .steps p { color: var(--on-dark); }

/* Pillars (dark grid) */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--dark-line); border: 1px solid var(--dark-line); }
.pillar { background: var(--ink); padding: 32px 28px; }
.pillar svg { stroke: var(--accent-soft); }
.pillar .h4 { margin-top: 20px; font-size: 26px; color: #F3F4F2; }
.pillar p { font-size: 16px; }
.pillar ul { margin: 16px 0 0; padding-left: 18px; color: #DDE0E3; font-size: 15px; line-height: 1.8; }
.callout { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; border: 1px solid var(--dark-line); padding: 28px 32px; }
.callout p { margin: 0; font-family: var(--serif); font-size: 26px; line-height: 1.25; color: #F3F4F2; }
.callout em { color: var(--accent-soft); }

/* Ticks list */
.ticks { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ticks li { padding: 18px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.ticks li::before { content: "—"; color: var(--accent); font-family: var(--serif); font-size: 22px; line-height: 1.2; }

/* Wedge */
.wedge { display: flex; flex-wrap: wrap; align-items: stretch; }
.wedge-text { flex: 1 1 480px; min-width: 0; padding: 96px 64px 96px 0; display: flex; flex-direction: column; justify-content: center; }
.wedge-media { flex: 1 1 440px; min-width: 0; min-height: 420px; }
.wedge-media img { width: 100%; height: 100%; min-height: 420px; object-fit: cover; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; margin-top: 32px; }
.mini-grid > div { border-top: 1px solid var(--ink); padding-top: 18px; }
.mini-grid p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 960px) { .wedge-text { padding: 72px 0 40px; } }
@media (max-width: 640px) { .wedge-media, .wedge-media img { min-height: 0; } .wedge-media img { height: auto; aspect-ratio: 4 / 3; border-radius: 4px; margin-bottom: 56px; } }

/* People rows */
.people { border-top: 1px solid var(--ink); margin-top: 8px; }
.people div { display: flex; flex-wrap: wrap; gap: 4px 24px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.people strong { flex: 0 0 200px; font-weight: 600; }
.people span { flex: 1 1 240px; color: var(--ink-2); }

/* Quote */
.quote { max-width: 980px; margin: 0 auto; text-align: center; }
.quote blockquote { margin: 0; font-family: var(--serif); font-size: clamp(28px, 3.2vw, 42px); line-height: 1.28; font-style: italic; }
.quote cite { display: block; margin-top: 28px; color: var(--muted); font-size: 15px; font-style: normal; }

/* Contact band + form */
.contact-band { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.contact-band > :first-child { flex: 999 1 480px; min-width: 0; }
.contact-band .h2 { margin-bottom: 20px; }
.accent-bg p { color: var(--on-accent); }
.form { flex: 1 1 380px; display: flex; flex-direction: column; gap: 14px; }
.form label { font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.form input, .form select, .form textarea { font: inherit; padding: 14px; border: 1px solid transparent; border-radius: 2px; color: var(--ink); background: var(--white); width: 100%; }
.form-light input, .form-light select, .form-light textarea { border-color: #CFCBC2; }
.form textarea { resize: vertical; }
.form .btn { margin-top: 6px; width: 100%; padding: 16px; }
.hidden { position: absolute; left: -9999px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { font-family: var(--serif); font-size: 24px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq summary::-webkit-details-marker { display: none; }
.faq details p { margin: 14px 0 0; color: var(--ink-2); }

/* Footer */
.site-footer { background: var(--ink); color: var(--on-dark); font-size: 14px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 40px 64px; justify-content: space-between; padding: 72px 0 48px; }
.footer-top .brand-name { color: var(--white); }
.footer-top p { max-width: 340px; margin-top: 12px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.footer-cols h4 { margin: 0 0 14px; font-family: var(--sans); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-soft); font-weight: 600; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { color: #F3F4F2; text-decoration: none; }
.footer-cols a:hover { color: var(--accent-soft); }
.footer-bottom { border-top: 1px solid var(--dark-line); padding: 24px 0 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; }
.footer-bottom a { color: #F3F4F2; }

/* Portrait placeholder */
.placeholder { background: #E9ECE8; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; border-radius: 4px; }

/* Prose (privacy) */
.prose { max-width: 760px; }
.prose h2 { font-size: 30px; margin: 48px 0 14px; }
.prose p, .prose li { color: var(--ink-2); }
