/* ===================================================
   Markides Advisory — shared stylesheet
   Brand: navy #0B2340 on white. Serif headlines, sans body.
   =================================================== */

:root {
  --navy: #0B2340;
  --navy-light: #1B3A63;
  --white: #FFFFFF;
  --offwhite: #F6F7F9;
  --line: #E3E6EA;
  --text: #1A2433;
  --muted: #5B6572;
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; }

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

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo img {
  height: 26px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}

.nav-links a:hover { color: var(--navy); }

.nav-links a.active { color: var(--navy); font-weight: 600; }

/* Higher-specificity override: .nav-links a sets a dark text color that
   otherwise wins over .btn-primary's white text, making the nav CTA
   button text invisible against its navy background. */
.nav-links a.btn-primary,
.nav-links a.btn-primary:hover {
  color: var(--white);
}

.nav-logo-mark {
  height: 44px;
  width: 44px;
  display: inline-block;
  vertical-align: middle;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 4px;
  transition: background 0.15s ease, transform 0.1s ease, color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-light);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 11.5px 24px;
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-small {
  padding: 9px 18px;
  font-size: 14px;
}

/* ---------- Sections / layout ---------- */

section { padding: 80px 0; }
section.tight { padding: 56px 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  margin: 0 0 14px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--navy);
  margin: 0 0 20px;
  line-height: 1.25;
}

h1 { font-size: 42px; }
h2 { font-size: 30px; }
h3 { font-size: 22px; }

p { margin: 0 0 18px; color: var(--text); }

p.lede {
  font-size: 19px;
  color: var(--muted);
}

.lede-lead {
  display: block;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 14px;
}

.muted { color: var(--muted); }

.center { text-align: center; }

/* ---------- Hero ---------- */

.hero {
  padding: 88px 0 72px;
}

.hero .wrap {
  max-width: 980px;
}

.hero-inner {
  display: flex;
  align-items: center;
  gap: 56px;
}

.hero-copy {
  flex: 1 1 54%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}

.hero-media {
  flex: 1 1 40%;
}

.hero-media .img-frame {
  aspect-ratio: 1 / 1;
  border-radius: 8px;
}

.hero h1 { font-size: 42px; }

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

@media (max-width: 760px) {
  .hero-inner {
    flex-direction: column-reverse;
    gap: 32px;
  }
  .hero-copy { align-items: flex-start; }
}

/* ---------- Image frame (used for all real photography) ---------- */

.img-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--offwhite);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-frame.contain img {
  object-fit: contain;
  padding: 14%;
}

/* circular photo frame used inside figure-mark slots (cards, avatars) */
.figure-mark.has-photo {
  overflow: hidden;
}

.figure-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.figure-mark.contain img {
  object-fit: contain;
  border-radius: 0;
  width: 62%;
  height: 62%;
}

/* ---------- Two-column text pane (used on FSE / SAIL detail pages) ---------- */

.text-pair {
  display: flex;
  gap: 56px;
}

.text-pair > div { flex: 1; }

@media (max-width: 760px) {
  .text-pair { flex-direction: column; gap: 32px; }
}

/* ---------- Figure / image-with-text blocks ---------- */

.figure-row {
  display: flex;
  align-items: center;
  gap: 56px;
  margin: 24px 0;
}

.figure-row.reverse { flex-direction: row-reverse; }

.figure-row .figure-media { flex: 0 0 260px; }

.figure-row .figure-text { flex: 1; }

@media (max-width: 760px) {
  .figure-row, .figure-row.reverse {
    flex-direction: column;
    gap: 24px;
  }
  .figure-row .figure-media { flex: none; width: 100%; }
}

/* Simple CSS-drawn "figure" mark used in place of stock photography.
   Swap the inner SVG/emoji for a real image any time — the container
   sizing stays the same. */
.figure-mark {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 220px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--offwhite);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.figure-mark svg { width: 46%; height: 46%; }

/* ---------- Cards (two-track / offer blocks) ---------- */

.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
  background: var(--white);
}

.card h3 { margin-bottom: 12px; }

.card ul {
  margin: 18px 0 24px;
  padding-left: 20px;
  color: var(--text);
}

.card li { margin-bottom: 8px; }

/* ---------- Three-slot grid (Build / Cadence / Expansion) ---------- */

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .card-grid-3 { grid-template-columns: 1fr; }
}

.slot-lead {
  font-size: 19px;
  line-height: 1.6;
  margin-bottom: 30px;
  max-width: 780px;
}

.slot-lead strong { color: var(--navy); }

.slot-note {
  margin-top: 30px;
  max-width: 820px;
  color: var(--muted, #55677f);
}

/* ---------- Proof / case study cards ---------- */

.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

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

.proof-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--white);
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow .18s ease, transform .18s ease;
}

.proof-card:hover,
.proof-card:focus-visible {
  box-shadow: 0 6px 22px rgba(11, 35, 64, .10);
  transform: translateY(-2px);
}

.proof-card img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
}

.proof-body { padding: 28px 30px 32px; }

.proof-body h3 { margin-bottom: 12px; }

.proof-open {
  display: inline-block;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--navy);
}

/* ---------- Bands ---------- */

.band-offwhite { background: var(--offwhite); }

.band-navy {
  background: var(--navy);
  color: var(--white);
}

.band-navy h1, .band-navy h2, .band-navy h3 { color: var(--white); }

.band-navy p { color: rgba(255,255,255,0.85); }

.band-navy .muted { color: rgba(255,255,255,0.65); }

/* ---------- Text block / body sections (used on FSE, SAIL, About) ---------- */

.stack { max-width: 720px; }

.stack + .stack { margin-top: 8px; }

.divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 0;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  color: var(--white);
  padding: 56px 0 40px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-word {
  font-family: var(--serif);
  font-size: 22px;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
}

.footer-links a { text-decoration: none; color: rgba(255,255,255,0.8); }
.footer-links a:hover { color: var(--white); }

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
  font-size: 13px;
  color: rgba(255,255,255,0.55);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-legal-links {
  display: flex;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-legal-links a {
  text-decoration: none;
  color: rgba(255,255,255,0.55);
}

.footer-legal-links a:hover { color: rgba(255,255,255,0.85); }

/* ---------- Legal pages (Privacy Policy / Terms) ---------- */

.legal-header {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
}

.legal-header .wrap { max-width: 760px; }

.legal-updated {
  color: var(--muted);
  font-size: 14px;
  margin-top: -8px;
}

.legal-body { padding: 56px 0 100px; }

.legal-body .wrap { max-width: 760px; }

.legal-body h2 {
  font-size: 23px;
  margin-top: 46px;
}

.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 26px 0 8px;
}

.legal-body ul {
  margin: 0 0 18px;
  padding-left: 22px;
  color: var(--text);
}

.legal-body li { margin-bottom: 8px; }

/* ---------- Insights: index list ---------- */

.insights-header {
  padding: 64px 0 36px;
  border-bottom: 1px solid var(--line);
}

.insights-header .wrap { max-width: 760px; }

.insights-list { padding: 8px 0 96px; }

.insights-list .wrap { max-width: 760px; }

.insight-row {
  display: block;
  text-decoration: none;
  padding: 34px 0;
  border-bottom: 1px solid var(--line);
}

.insight-row:hover h2 { color: var(--navy-light); }

.insight-row .eyebrow { margin-bottom: 10px; }

.insight-row h2 {
  font-size: 25px;
  margin: 0 0 10px;
  transition: color 0.15s ease;
}

.insight-row p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 17px;
}

.insight-meta {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.insights-empty {
  padding: 48px 0;
  color: var(--muted);
}

/* ---------- Insights: post page ---------- */

.post-header {
  padding: 64px 0 32px;
}

.post-header .wrap { max-width: 720px; }

.post-header h1 {
  font-size: 38px;
  margin-bottom: 18px;
}

.post-dek {
  font-size: 19px;
  color: var(--muted);
  margin-bottom: 20px;
}

.post-body {
  padding: 8px 0 40px;
}

.post-body .wrap { max-width: 720px; }

/* ~68 character measure at this size */
.post-body p,
.post-body ul,
.post-body ol {
  font-size: 18px;
  line-height: 1.72;
}

.post-body h2 {
  font-size: 27px;
  margin: 52px 0 16px;
}

.post-body h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 10px;
}

.post-body ul, .post-body ol {
  margin: 0 0 22px;
  padding-left: 22px;
}

.post-body li { margin-bottom: 10px; }

.post-body a { color: var(--navy); text-decoration: underline; }

.post-body blockquote {
  margin: 40px 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--navy);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.45;
  color: var(--navy);
}

.post-body blockquote p { font: inherit; color: inherit; margin: 0; }

/* TL;DR block */

.post-tldr {
  background: var(--offwhite);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px 32px;
  margin: 36px 0 44px;
}

.post-tldr .eyebrow { margin-bottom: 12px; }

.post-tldr ul {
  margin: 0;
  padding-left: 20px;
  font-size: 17px;
  line-height: 1.6;
}

.post-tldr li { margin-bottom: 9px; }

.post-tldr li:last-child { margin-bottom: 0; }

/* Track link line above the closing CTA */

.post-track-link {
  max-width: 720px;
  margin: 44px auto 0;
  padding: 0 32px;
}

.post-track-link p {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  font-size: 17px;
  color: var(--muted);
}

.post-track-link a { color: var(--navy); font-weight: 600; }

/* Previous / next */

.post-nav {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px 8px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 15px;
}

.post-nav a { color: var(--navy); text-decoration: none; }
.post-nav a:hover { text-decoration: underline; }

@media (max-width: 620px) {
  .post-header h1 { font-size: 31px; }
  .post-body p, .post-body ul, .post-body ol { font-size: 17px; }
  .post-nav { flex-direction: column; gap: 12px; }
}
