/* ============================================================
   DIRECTOS — Direct Operations — Global Stylesheet
   Designed for Framer / Webflow import
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;1,9..40,300&display=swap');

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  --navy:        #0D1B3E;
  --navy-mid:    #0D1B3E;
  --navy-light:  #1A3A6A;
  --steel:       #0D47A1;
  --steel-light: #0097A7;
  --teal:        #0097A7;
  --off-white:   #F5F6F4;
  --warm-grey:   #E2E4E8;
  --rule:        #C8CDD8;
  --body:        #0D1B3E;
  --muted:       #4A5568;
  --lighter:     #8A9199;
  --white:       #FFFFFF;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --max-w:    1120px;
  --gutter:   clamp(24px, 5vw, 80px);
  --section-v: clamp(72px, 10vw, 140px);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--body);
  line-height: 1.7;
  font-size: 1.0625rem;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout ────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-v); }
.section--dark { background: var(--navy-mid); color: var(--off-white); }
.section--navy { background: var(--navy); color: var(--off-white); }
.section--tinted { background: #F0EDE6; }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--off-white);
  border-bottom: 1px solid var(--warm-grey);
  padding-block: 0;
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.nav__logo {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-mark {
  width: 28px; height: 28px;
  border: 1.5px solid rgba(13,27,62,0.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--navy);
  flex-shrink: 0;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}
.nav__links a {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.01em;
  transition: color 0.2s;
}
.nav__links a:hover, .nav__links a.active { color: var(--navy); }
.nav__cta {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--white);
  background: var(--navy);
  border: 1px solid var(--navy);
  padding: 8px 20px;
  letter-spacing: 0.02em;
  transition: background 0.2s, border-color 0.2s;
}
.nav__cta:hover { background: var(--steel); border-color: var(--steel); }
.nav__mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 4px; }
.nav__mobile-toggle span { display: block; width: 22px; height: 1.5px; background: var(--navy); transition: transform 0.3s; }

/* ── Typography ────────────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--steel-light);
  display: block;
  margin-bottom: 16px;
}
.eyebrow--light { color: rgba(255,255,255,0.45); }

h1, .h1 {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4.25rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--white);
}
h2, .h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.012em;
}
h3, .h3 {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2vw, 1.625rem);
  font-weight: 400;
  line-height: 1.25;
}
.lead {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.65;
  font-weight: 300;
  color: rgba(255,255,255,0.72);
  max-width: 580px;
}
.lead--dark { color: var(--muted); }
.body-lg { font-size: 1.125rem; line-height: 1.72; }
.body-sm { font-size: 0.9375rem; line-height: 1.65; color: var(--muted); }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 28px;
  transition: all 0.22s var(--ease-out);
  white-space: nowrap;
}
.btn--primary {
  background: var(--off-white);
  color: var(--navy);
}
.btn--primary:hover { background: var(--white); transform: translateY(-1px); }
.btn--outline {
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
}
.btn--outline:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.05); }
.btn--outline-dark {
  border: 1px solid var(--rule);
  color: var(--body);
}
.btn--outline-dark:hover { border-color: var(--steel); color: var(--steel); }
.btn--text {
  color: var(--steel);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0;
  gap: 6px;
}
.btn--text:hover { color: var(--navy); }
.btn-arrow { font-size: 1em; transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(3px); }

/* ── Grid Utilities ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }

/* ── Cards ─────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--warm-grey);
  padding: 40px 36px;
  transition: border-color 0.2s, transform 0.2s var(--ease-out);
}
.card:hover { border-color: var(--steel); transform: translateY(-2px); }
.card--dark {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.07);
  color: var(--off-white);
}
.card--dark:hover { border-color: rgba(255,255,255,0.2); }
.card__tag {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-light);
  margin-bottom: 20px;
  display: block;
}
.card__tag--light { color: rgba(255,255,255,0.4); }
.card__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1.5;
  color: var(--muted);
  border-left: 2px solid var(--rule);
  padding-left: 20px;
  margin-bottom: 28px;
}
.card__title { margin-bottom: 12px; }
.card__body { font-size: 0.9375rem; color: var(--muted); line-height: 1.65; margin-bottom: 28px; }
.card__body--light { color: rgba(255,255,255,0.6); }
.card__outcomes { list-style: none; margin-bottom: 28px; }
.card__outcomes li {
  font-size: 0.875rem;
  color: var(--muted);
  padding: 8px 0;
  border-bottom: 1px solid var(--warm-grey);
  padding-left: 16px;
  position: relative;
}
.card__outcomes li::before { content: '—'; position: absolute; left: 0; color: var(--rule); }

/* ── Dividers & Rules ──────────────────────────────────────── */
.rule { border: none; border-top: 1px solid var(--rule); margin-block: 0; }
.rule--light { border-color: rgba(255,255,255,0.08); }

/* ── Proof strip ───────────────────────────────────────────── */
.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--warm-grey);
}
.proof-item {
  padding: 40px 36px;
  border-right: 1px solid var(--warm-grey);
}
.proof-item:last-child { border-right: none; }
.proof-item__number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.proof-item__label { font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }

/* ── Signal blocks (recognition signals) ───────────────────── */
.signal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--warm-grey);
}
.signal-item {
  padding: 36px 32px;
  border-right: 1px solid var(--warm-grey);
  position: relative;
}
.signal-item:last-child { border-right: none; }
.signal-item__number {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--lighter);
  display: block;
  margin-bottom: 14px;
}
.signal-item__text { font-size: 1.0rem; line-height: 1.55; color: var(--body); }

/* ── Article card ───────────────────────────────────────────── */
.article-card {
  padding: 36px 0;
  border-bottom: 1px solid var(--warm-grey);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 24px;
  transition: opacity 0.2s;
}
.article-card:hover { opacity: 0.75; }
.article-card__cat {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
  display: block;
}
.article-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--body);
}
.article-card__meta { font-size: 0.875rem; color: var(--lighter); }
.article-card__arrow { color: var(--rule); font-size: 1.2rem; margin-top: 4px; transition: color 0.2s, transform 0.2s; }
.article-card:hover .article-card__arrow { color: var(--steel); transform: translateX(4px); }

/* ── Lead magnet strip ──────────────────────────────────────── */
.lead-strip {
  background: var(--navy);
  padding: 64px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.lead-strip__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 10px;
}
.lead-strip__title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.875rem);
  color: var(--white);
  line-height: 1.2;
}
.lead-strip__sub { font-size: 0.9375rem; color: rgba(255,255,255,0.55); margin-top: 8px; max-width: 440px; }
.lead-strip__actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-block: 48px;
}
.footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__nav { display: flex; gap: 28px; list-style: none; }
.footer__nav a { font-size: 0.8125rem; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer__nav a:hover { color: rgba(255,255,255,0.8); }
.footer__copy { font-size: 0.8125rem; color: rgba(255,255,255,0.25); }

/* ── Page header (inner pages) ──────────────────────────────── */
.page-header {
  background: var(--navy);
  padding-block: clamp(64px, 10vw, 120px);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 80% 50%, rgba(13,71,161,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.page-header__inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: center;
}
.page-header__graphic {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  min-height: 260px;
}
@media (max-width: 860px) {
  .page-header__inner { grid-template-columns: 1fr; }
  .page-header__graphic { display: none; }
}
.page-header__breadcrumb {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.page-header__breadcrumb a { transition: color 0.2s; }
.page-header__breadcrumb a:hover { color: rgba(255,255,255,0.7); }

/* ── Framework page specifics ────────────────────────────────── */
.outcomes-list { list-style: none; }
.outcomes-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--warm-grey);
  display: flex;
  gap: 16px;
  align-items: baseline;
}
.outcomes-list li::before {
  content: '—';
  color: var(--steel);
  font-size: 0.875rem;
  flex-shrink: 0;
}
.outcomes-list li span { font-size: 1rem; line-height: 1.55; color: var(--body); }

.contains-list { list-style: none; }
.contains-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--warm-grey);
  font-size: 0.9375rem;
  color: var(--body);
  display: flex;
  gap: 12px;
  align-items: baseline;
}
.contains-list li::before { content: '·'; color: var(--steel); font-size: 1.1em; }

.framework-meta {
  background: var(--navy);
  padding: 36px;
  color: var(--off-white);
}
.framework-meta__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  font-size: 0.9375rem;
}
.framework-meta__label { color: rgba(255,255,255,0.45); font-size: 0.875rem; }

/* ── Intelligence page ──────────────────────────────────────── */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.filter-btn {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--muted);
  border: 1px solid var(--warm-grey);
  padding: 7px 16px;
  background: transparent;
  cursor: pointer;
  transition: all 0.18s;
  font-family: var(--font-body);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--navy); color: var(--navy); background: var(--navy); color: var(--white); }

/* ── About page ─────────────────────────────────────────────── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--warm-grey);
  border: 1px solid var(--warm-grey);
  margin-block: 48px;
}
.stat-cell {
  background: var(--white);
  padding: 36px 32px;
}
.stat-cell__number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-cell__desc { font-size: 0.9375rem; color: var(--muted); line-height: 1.5; }

/* ── Advisory page ──────────────────────────────────────────── */
.availability-block {
  border-left: 3px solid var(--teal);
  padding: 24px 28px;
  background: #EEF7F6;
  margin-block: 40px;
}
.availability-block__label {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  display: block;
  margin-bottom: 8px;
}
.availability-block__text { font-size: 1rem; color: var(--body); line-height: 1.55; }

/* ── Schematic line decoration ───────────────────────────────── */
.schematic-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.04;
}

/* ── Utility ─────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--muted); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-12 { margin-bottom: 48px; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.col-2 { column-count: 2; column-gap: 40px; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.7s var(--ease-out) both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.22s; }
.fade-up-3 { animation-delay: 0.34s; }
.fade-up-4 { animation-delay: 0.46s; }

/* ── Responsive ──────────────────────────────────────────────── */

/* Tablet — 900px and below */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }

  .signal-grid { grid-template-columns: repeat(2, 1fr); }
  .signal-item:nth-child(even) { border-right: none; }
  .signal-item { border-bottom: 1px solid var(--warm-grey); }
  .signal-item:nth-last-child(-n+2) { border-bottom: none; }

  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-item:nth-child(even) { border-right: none; }
  .proof-item { border-bottom: 1px solid var(--warm-grey); }
  .proof-item:last-child { border-bottom: none; }

  .stat-row { grid-template-columns: repeat(2, 1fr); }

  .lead-strip { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__nav { flex-wrap: wrap; gap: 16px; }
}

/* Mobile — 720px and below */
@media (max-width: 720px) {
  :root { --section-v: clamp(48px, 8vw, 80px); }

  .grid-2 { grid-template-columns: 1fr; }

  .nav__links, .nav__cta { display: none; }
  .nav__mobile-toggle { display: flex; }

  .signal-grid { grid-template-columns: 1fr; }
  .signal-item { border-right: none; border-bottom: 1px solid var(--warm-grey); }
  .signal-item:last-child { border-bottom: none; }

  .proof-strip { grid-template-columns: 1fr; }
  .proof-item { border-right: none; border-bottom: 1px solid var(--warm-grey); }
  .proof-item:last-child { border-bottom: none; }

  .stat-row { grid-template-columns: 1fr; }
  .stat-cell { padding: 24px 20px; }

  .article-card { grid-template-columns: 1fr; gap: 8px; }
  .article-card__arrow { display: none; }

  .lead-strip { flex-direction: column; align-items: flex-start; }
  .lead-strip__actions { width: 100%; }
  .lead-strip__actions .btn { width: 100%; justify-content: center; }

  .footer__inner { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer__nav { flex-wrap: wrap; gap: 14px 20px; }

  .page-header { padding-block: clamp(40px, 8vw, 72px); }

  .framework-meta__row { flex-direction: column; gap: 4px; }

  .filter-bar { gap: 6px; }
  .filter-btn { font-size: 0.75rem; padding: 6px 12px; }

  .availability-block { padding: 18px 20px; }
  .enquire-note { font-size: 0.75rem; }
}
