/* ═══════════════════════════════════════════════════════
   BASE REALITY GROUP — Shared Stylesheet
   All pages reference this file.
═══════════════════════════════════════════════════════ */

/* ─── Reset & Base ────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #F5F0EB;
  color: #1A1A1A;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── Noise Texture ───────────────────────────────── */
.has-noise { position: relative; }
.has-noise::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.028;
  pointer-events: none;
  z-index: 1;
}
.has-noise > * { position: relative; z-index: 2; }

/* ─── Layered Shadows ─────────────────────────────── */
.shadow-card {
  box-shadow:
    0 1px 3px rgba(27, 43, 75, 0.07),
    0 4px 16px rgba(27, 43, 75, 0.09),
    0 16px 40px rgba(27, 43, 75, 0.05);
}
.shadow-step {
  box-shadow:
    0 1px 2px rgba(27, 43, 75, 0.05),
    0 4px 12px rgba(27, 43, 75, 0.08),
    0 12px 28px rgba(27, 43, 75, 0.05);
}
.shadow-elevated {
  box-shadow:
    0 2px 8px rgba(27, 43, 75, 0.08),
    0 8px 24px rgba(27, 43, 75, 0.12),
    0 24px 64px rgba(27, 43, 75, 0.07);
}

/* ─── Navigation ──────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #1B2B4B;
  border-bottom: 1px solid rgba(245, 240, 235, 0.07);
}
.nav-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img { height: 2.125rem; width: auto; }
.nav-logo-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(245, 240, 235, 0.5);
  letter-spacing: 0.065em;
  text-transform: uppercase;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
@media (min-width: 768px) { .nav-links { display: flex; } }
.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(245, 240, 235, 0.65);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}
.nav-link:hover { color: #F5F0EB; }
.nav-link.active { color: #F5F0EB; border-bottom-color: #0D7377; }
.nav-link:focus-visible { outline: 2px solid #0D7377; outline-offset: 4px; border-radius: 2px; }
.nav-cta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #F5F0EB;
  background: #0D7377;
  padding: 0.5rem 1.25rem;
  border-radius: 3px;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, transform 0.15s ease;
}
.nav-cta:hover { background: #0b6468; }
.nav-cta:focus-visible { outline: 2px solid #F5F0EB; outline-offset: 3px; }
.nav-cta:active { transform: scale(0.97); }
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: rgba(245, 240, 235, 0.75);
  transition: color 0.2s ease;
}
.nav-hamburger:hover { color: #F5F0EB; }
.nav-hamburger:focus-visible { outline: 2px solid #0D7377; border-radius: 2px; }
@media (min-width: 768px) { .nav-hamburger { display: none; } }

/* ─── Mobile Drawer ───────────────────────────────── */
.mobile-drawer {
  display: none;
  position: fixed;
  inset: 0;
  background: #1B2B4B;
  z-index: 100;
  flex-direction: column;
  padding: 1.5rem;
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 2rem;
}
.mobile-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(245, 240, 235, 0.65);
  padding: 0.5rem;
  transition: color 0.2s ease;
}
.mobile-drawer-close:hover { color: #F5F0EB; }
.mobile-drawer nav { display: flex; flex-direction: column; gap: 0; }
.mobile-drawer .nav-link {
  font-size: 1.375rem;
  font-weight: 400;
  font-family: 'Fraunces', Georgia, serif;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(245, 240, 235, 0.08);
  border-left: none;
  color: rgba(245, 240, 235, 0.7);
}
.mobile-drawer .nav-link:hover { color: #F5F0EB; }
.mobile-drawer .nav-link.active { color: #F5F0EB; }
.mobile-drawer-footer { margin-top: auto; padding-top: 2rem; }

/* ─── Labels & Eyebrows ───────────────────────────── */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0D7377;
  display: block;
}
.eyebrow-light { color: rgba(13, 115, 119, 0.85); }

/* ─── Display Headings ────────────────────────────── */
.display-xl {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.display-lg {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.display-md {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.display-sm {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

/* ─── Body Text ───────────────────────────────────── */
.body-lg { font-size: 1.0625rem; line-height: 1.75; }
.body-md { font-size: 0.9375rem; line-height: 1.7; }
.body-sm { font-size: 0.875rem; line-height: 1.65; }

/* ─── Buttons ─────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: #0D7377;
  color: #F5F0EB;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.9375rem 2.25rem;
  border-radius: 3px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 8px rgba(13, 115, 119, 0.35), 0 8px 20px rgba(13, 115, 119, 0.15);
}
.btn-primary:hover {
  background: #0b6468;
  box-shadow: 0 4px 14px rgba(13, 115, 119, 0.45), 0 12px 28px rgba(13, 115, 119, 0.2);
}
.btn-primary:focus-visible { outline: 2px solid rgba(245, 240, 235, 0.8); outline-offset: 3px; }
.btn-primary:active { transform: scale(0.98); }

.btn-ghost {
  display: inline-block;
  background: transparent;
  color: #F5F0EB;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  padding: 0.8125rem 1.875rem;
  border-radius: 3px;
  border: 1px solid rgba(245, 240, 235, 0.3);
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
}
.btn-ghost:hover { border-color: rgba(245, 240, 235, 0.7); background: rgba(245, 240, 235, 0.06); }
.btn-ghost:focus-visible { outline: 2px solid #0D7377; outline-offset: 3px; }
.btn-ghost:active { transform: scale(0.98); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: #0D7377;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  padding: 0.9375rem 2.25rem;
  border-radius: 3px;
  border: 1.5px solid #0D7377;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-outline:hover { background: #0D7377; color: #F5F0EB; }
.btn-outline:focus-visible { outline: 2px solid #0D7377; outline-offset: 3px; }
.btn-outline:active { transform: scale(0.98); }

/* ─── Endorsement Cards ───────────────────────────── */
.endorsement-card {
  background: #F5F0EB;
  border-left: 3px solid #1B2B4B;
  border-radius: 0 4px 4px 0;
  padding: 1.875rem 1.875rem 1.875rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.endorsement-top {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.endorsement-headshot {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  border: 2px solid rgba(27, 43, 75, 0.1);
}
.endorsement-quote {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.65;
  color: #1A1A1A;
  margin: 0;
}
.endorsement-placeholder {
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 0.8125rem;
  color: rgba(26, 26, 26, 0.35);
  border: 1px dashed rgba(27, 43, 75, 0.2);
  padding: 0.5rem 0.75rem;
  border-radius: 3px;
}
.endorsement-cite { font-style: normal; font-family: 'Inter', sans-serif; }
.endorsement-name {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #0D7377;
  display: block;
  margin-bottom: 0.25rem;
}
.endorsement-title {
  font-size: 0.8125rem;
  color: rgba(26, 26, 26, 0.55);
  line-height: 1.5;
}

/* ─── Framework Step Cards ────────────────────────── */
.step-card {
  background: #fff;
  border-radius: 4px;
  padding: 1.75rem 1.5rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.step-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: #0D7377;
}
.step-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(27, 43, 75, 0.13), 0 16px 40px rgba(27, 43, 75, 0.08);
}
.step-num {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 2.75rem;
  font-weight: 700;
  color: #1B2B4B;
  opacity: 0.12;
  line-height: 1;
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  letter-spacing: -0.04em;
}
.step-title-text {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 1.1875rem;
  font-weight: 600;
  color: #1B2B4B;
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.step-desc-text {
  font-size: 0.9rem;
  line-height: 1.7;
  color: rgba(26, 26, 26, 0.7);
}

/* ─── Client Pills ────────────────────────────────── */
.client-pill {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1B2B4B;
  background: rgba(27, 43, 75, 0.07);
  padding: 0.3125rem 0.875rem;
  border-radius: 100px;
  border: 1px solid rgba(27, 43, 75, 0.1);
  letter-spacing: 0.005em;
}

/* ─── Stat Blocks (hero credential bar) ──────────── */
.stat-block {
  border-left: 1px solid rgba(245, 240, 235, 0.15);
  padding-left: 1.5rem;
}
.stat-block:first-child { border-left: none; padding-left: 0; }
@media (max-width: 639px) {
  .stat-block { border-left: none; padding-left: 0; border-top: 1px solid rgba(245, 240, 235, 0.12); padding-top: 1.25rem; }
  .stat-block:first-child { border-top: none; padding-top: 0; }
}

/* ─── Animations ──────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.fade-up { animation: fadeUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) both; }
.fade-in { animation: fadeIn 0.5s ease both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.45s; }
.d6 { animation-delay: 0.55s; }

/* ─── Scroll Reveal ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.05s; }
.reveal-d2 { transition-delay: 0.12s; }
.reveal-d3 { transition-delay: 0.19s; }
.reveal-d4 { transition-delay: 0.26s; }
.reveal-d5 { transition-delay: 0.33s; }

/* ─── Footer ──────────────────────────────────────── */
footer a {
  color: rgba(245, 240, 235, 0.45);
  text-decoration: none;
  transition: color 0.2s ease;
}
footer a:hover { color: rgba(245, 240, 235, 0.85); }
footer a:focus-visible { outline: 2px solid #0D7377; outline-offset: 2px; border-radius: 2px; }

/* ─── Page Section Utility ────────────────────────── */
.section-navy  { background: #1B2B4B; }
.section-cream { background: #F5F0EB; }
.section-sand  { background: #EDE8E2; }
.section-white { background: #ffffff; border-top: 1px solid rgba(27,43,75,0.06); }

.section-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.section-inner-narrow {
  max-width: 46rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.section-pad { padding-top: 5.5rem; padding-bottom: 5.5rem; }
.section-pad-sm { padding-top: 4rem; padding-bottom: 4rem; }

/* ─── Divider line ────────────────────────────────── */
.divider-light { border: none; border-top: 1px solid rgba(27, 43, 75, 0.1); margin: 2.5rem 0; }
.divider-dark  { border: none; border-top: 1px solid rgba(245, 240, 235, 0.1); margin: 2.5rem 0; }

/* ─── Inline JavaScript shared across pages ──────── */
/* (scroll reveal + mobile drawer — paste into each page) */
