/* =========================================================
   Morgan Branch the Broker — styles.css
   Flat, high-contrast, institutional. No shadows, no gradients.
   ========================================================= */

:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --off-white: #f7f6f4;
  --lavender: #C9B8E8;
  --powder: #B8D4E8;
  --powder-deep: #5E93B8;

  --gray-text: #6b6b6b;
  --gray-muted: #9a9a9a;
  --border-light: #e4e2de;
  --border-dark: #262626;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1180px;
  --pad: 24px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- Float-in reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1),
              transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal--d1 { transition-delay: 0.08s; }
.reveal--d2 { transition-delay: 0.16s; }
.reveal--d3 { transition-delay: 0.24s; }
.reveal--d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ---------- Typography helpers ---------- */

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 22px;
  display: block;
}

.label--dark {
  color: var(--gray-text);
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.3375rem, 5.5vw, 4.1375rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.8375rem, 4vw, 2.9375rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

em, .em {
  font-style: italic;
}

.subtext {
  font-size: 1.0575rem;
  color: var(--gray-text);
  max-width: 620px;
  margin-top: 26px;
  line-height: 1.65;
}

p + p {
  margin-top: 18px;
}

/* Space between a headline and the body paragraph that follows it */
.two-col .headline + p {
  margin-top: 32px;
}

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

.section {
  padding: 48px 0;
}

.section--black {
  background: var(--black);
  color: var(--white);
}

.section--white {
  background: var(--white);
  color: var(--black);
}

.section--offwhite {
  background: var(--off-white);
  color: var(--black);
}

.section--black .subtext,
.section--black p {
  color: #c9c9c9;
}

.section--black .label {
  color: var(--lavender);
}

.top-border {
  border-top: 1px solid var(--border-dark);
}

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

.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 15px 30px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  line-height: 1;
  text-align: center;
}

.btn--pill {
  background: var(--lavender);
  color: var(--black);
}

.btn--pill:hover {
  background: #b7a2dd;
}

.btn--ghost {
  background: transparent;
  color: inherit;
  padding: 15px 4px;
  border: none;
  font-weight: 500;
}

.btn--ghost:hover {
  color: var(--lavender);
}

.btn--outline {
  background: transparent;
  color: var(--gray-muted);
  border: 1px solid #444;
  cursor: not-allowed;
}

.section--white .btn--outline,
.section--offwhite .btn--outline {
  color: var(--gray-muted);
  border-color: var(--border-light);
}

.textlink {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--lavender);
  display: inline-block;
  transition: opacity 0.18s ease;
}

.textlink:hover {
  opacity: 0.7;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px;
  margin-top: 38px;
}

/* ---------- Navigation (hamburger / stacked menu at all widths) ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-light);
}

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

.nav__logo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: -0.01em;
}

.nav__logo em {
  font-style: italic;
  font-weight: 500;
}

/* Stacked dropdown menu — hidden until toggled, on every screen size */
.nav__links {
  position: absolute;
  top: 70px;
  left: 0;
  right: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-light);
  padding: 8px var(--pad) 22px;
  display: none;
}

.nav__links.open {
  display: flex;
}

.nav__links a {
  width: 100%;
  padding: 15px 0;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  border-bottom: 1px solid var(--border-light);
  transition: color 0.18s ease;
}

.nav__links a:hover {
  color: var(--black);
}

.nav__links a.nav__cta {
  margin-top: 16px;
  background: var(--lavender);
  color: var(--black);
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 600;
  text-align: center;
  border-bottom: none;
}

.nav__links a.nav__cta:hover {
  background: #b7a2dd;
  color: var(--black);
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.nav__toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--black);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

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

.hero {
  background: var(--black);
  color: var(--white);
  padding: 44px 0 48px;
}

.hero .display {
  max-width: 14ch;
}

.page-hero {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 44px;
}

.page-hero .display {
  max-width: 16ch;
}

/* ---------- Pillar preview cards ---------- */

.section-head {
  max-width: 720px;
  margin-bottom: 32px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

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

/* Card is a full link */
.card {
  border: 1px solid var(--border-light);
  padding: 38px 32px;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

a.card:hover {
  border-color: var(--lavender);
  background: var(--off-white);
  transform: translateY(-3px);
}

.section--offwhite .card {
  background: var(--off-white);
}

/* Cards on dark sections: white tiles with dark text for contrast */
.section--black .card {
  background: var(--white);
  border-color: var(--border-light);
}

.section--black .card__title {
  color: var(--black);
}

.section--black .card__body {
  color: var(--black);
}

.section--black a.card:hover {
  background: var(--off-white);
  border-color: var(--lavender);
}

.card--inactive {
  opacity: 0.78;
}

a.card.card--inactive:hover {
  opacity: 1;
}

.card__num {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: var(--lavender);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
}

.card__title {
  font-family: var(--serif);
  font-size: 1.6375rem;
  font-weight: 500;
  margin-bottom: 14px;
}

.card__body {
  font-size: 0.9375rem;
  color: var(--black);
  flex-grow: 1;
}

.card__foot {
  margin-top: 26px;
}

.card__cta {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  color: var(--lavender);
  transition: opacity 0.18s ease;
}

a.card:hover .card__cta {
  opacity: 0.75;
}

.card__soon {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-muted);
}

.center-link {
  text-align: center;
  margin-top: 48px;
}

/* ---------- Two-column blocks ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.two-col--top {
  align-items: start;
}

.photo-ph {
  background: #1c1c1c;
  border: 1px solid var(--border-dark);
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.section--white .photo-ph,
.section--offwhite .photo-ph {
  background: var(--off-white);
  border: 1px solid var(--border-light);
}

.photo-ph__label {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-muted);
  font-weight: 600;
}

/* ---------- Pillar full rows ---------- */

.pillar-section {
  scroll-margin-top: 84px;
}

.pillar-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: start;
}

.pillar-numeral {
  font-family: var(--serif);
  font-size: 119px;
  font-weight: 600;
  line-height: 1;
  color: var(--lavender);
  opacity: 0.35;
  margin-top: 18px;
}

.pillar-left .headline {
  margin-top: 24px;
}

/* ---------- Stat cards ---------- */

.stat-cards {
  display: grid;
  gap: 22px;
}

.stat-card {
  border: 1px solid var(--border-light);
  padding: 32px;
}

.stat-card__k {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--powder-deep);
  margin-bottom: 12px;
}

.stat-card__v {
  font-family: var(--serif);
  font-size: 1.2875rem;
  font-weight: 500;
  line-height: 1.3;
}

/* ---------- Framework steps ---------- */

.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 18px;
}

.step {
  border: 1px solid var(--border-dark);
  padding: 34px 28px;
}

.step__num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--lavender);
  margin-bottom: 16px;
}

.step__title {
  font-family: var(--serif);
  font-size: 1.3875rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.step__body {
  font-size: 0.9175rem;
  color: #b8b8b8;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 23px;
  color: var(--lavender);
}

.framework-link {
  margin-top: 46px;
}

/* ---------- CTA section ---------- */

.cta {
  text-align: center;
}

.cta .headline {
  max-width: 18ch;
  margin: 0 auto;
}

.cta p {
  max-width: 560px;
  margin: 24px auto 0;
}

.cta .btn {
  margin-top: 38px;
}

/* ---------- Mailing list ---------- */

.mail-inner {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.mail-inner .headline {
  max-width: 16ch;
  margin: 0 auto;
}

.mail-inner p {
  max-width: 520px;
  margin: 22px auto 0;
  color: var(--gray-text);
}

.section--black .mail-inner p {
  color: #c9c9c9;
}

.mail-form {
  display: flex;
  gap: 12px;
  margin: 34px auto 0;
  max-width: 500px;
}

.mail-input {
  flex: 1 1 auto;
  min-width: 0;
  font-family: var(--sans);
  font-size: 15px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 999px;
  padding: 15px 22px;
  transition: border-color 0.18s ease;
}

.mail-input::placeholder {
  color: var(--gray-muted);
}

.mail-input:focus {
  outline: none;
  border-color: var(--lavender);
}

.mail-form .btn {
  flex: 0 0 auto;
}

.mail-msg {
  min-height: 1.4em;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 500;
}

.mail-msg--ok {
  color: #2f7d4f;
}

.mail-msg--error {
  color: #b23b3b;
}

@media (max-width: 640px) {
  .mail-form {
    flex-direction: column;
  }

  .mail-form .btn {
    width: 100%;
  }
}

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

.footer {
  background: var(--black);
  color: var(--white);
  padding: 72px 0 40px;
  border-top: 1px solid var(--border-dark);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
}

.footer__logo {
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 600;
  margin-bottom: 14px;
}

.footer__logo em {
  font-style: italic;
  font-weight: 500;
}

.footer__tag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.9875rem;
  color: #bcbcbc;
  margin-bottom: 20px;
  max-width: 26ch;
}

.footer__col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lavender);
  margin-bottom: 18px;
}

.footer__col ul {
  list-style: none;
}

.footer__col li {
  margin-bottom: 12px;
}

.footer__col a {
  font-size: 14px;
  color: #cfcfcf;
  transition: color 0.18s ease;
}

.footer__col a:hover {
  color: var(--white);
}

.footer__disclaimer {
  border-top: 1px solid var(--border-dark);
  margin-top: 56px;
  padding-top: 30px;
  font-size: 11.5px;
  line-height: 1.7;
  color: #7c7c7c;
  max-width: 100%;
}

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .two-col,
  .pillar-row {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .step-arrow {
    transform: rotate(90deg);
    padding: 4px 0;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .section {
    padding: 40px 0;
  }
}

@media (max-width: 640px) {
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .btn-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn--pill {
    width: 100%;
  }

  .pillar-numeral {
    font-size: 87px;
  }
}
