/* ── Philosophy page: disable scroll-snap, enable long-form reading ── */
html:has(body.page-philosophy),
body.page-philosophy {
  scroll-snap-type: none;
}

body.page-philosophy main {
  padding-top: 85px;
}

/* ── Hero ── */
.philo-hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(85svh - 85px);
  padding: 120px 32px 128px;
  background: var(--navy);
  text-align: center;
}

.philo-hero-inner {
  width: min(100%, 860px);
  margin: 0 auto;
}

.philo-hero .eyebrow {
  color: var(--gold);
  margin-bottom: 28px;
}

.philo-hero-heading {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 400;
  line-height: 1.12;
  color: var(--gold-light);
}

.philo-hero-heading .strong {
  color: var(--white);
  font-weight: 700;
}

.philo-hero-sub {
  margin: 40px auto 0;
  max-width: 640px;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.78);
}

/* ── Shared long-read section ── */
.philo-section {
  padding: 112px 32px;
}

.philo-section-inner {
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.philo-section-inner.centered {
  text-align: center;
}

.philo-section.cream { background: var(--cream); }
.philo-section.white { background: var(--white); }
.philo-section.navy  { background: var(--navy); }

.philo-section.navy .eyebrow { color: var(--gold); }
.philo-section.navy .philo-heading,
.philo-section.navy .philo-body { color: var(--white); }

.philo-heading {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--navy);
  max-width: 820px;
}

.philo-section-inner.centered .philo-heading {
  margin-left: auto;
  margin-right: auto;
}

.philo-body {
  margin-top: 28px;
  max-width: 680px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: rgba(61, 61, 61, 0.78);
}

.philo-section.navy .philo-body {
  color: rgba(255, 255, 255, 0.78);
}

.philo-section-inner.centered .philo-body {
  margin-left: auto;
  margin-right: auto;
}

/* ── Contexts grid (5 items: 3 across row 1, 2 centred row 2) ── */
.philo-contexts .philo-heading {
  max-width: 640px;
}

.philo-context-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
  margin-top: 72px;
}

.philo-context-grid > * { grid-column: span 2; }
.philo-context-grid > :nth-child(4) { grid-column: 2 / span 2; }
.philo-context-grid > :nth-child(5) { grid-column: 4 / span 2; }

.philo-context {
  padding: 32px 26px;
  border: 1px solid rgba(227, 199, 137, 0.22);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
}

.philo-context-num {
  display: block;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: rgba(227, 199, 137, 0.55);
  margin-bottom: 18px;
}

.philo-context-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--gold-light);
}

.philo-context-body {
  margin-top: 12px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.72);
}

/* ── Who we style ── */
.philo-who-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 64px;
  margin-top: 56px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.philo-who-item {
  padding-top: 20px;
  border-top: 1px solid rgba(27, 32, 68, 0.14);
}

.philo-who-item h4 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.philo-who-item p {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(61, 61, 61, 0.7);
}

.philo-who-foot {
  margin-top: 48px;
  font-size: 14px;
  font-style: italic;
  color: rgba(61, 61, 61, 0.55);
}

/* ── CTA tweaks for long-form pages ── */
body.page-philosophy .cta-heading {
  white-space: normal;
  font-size: 36px;
  line-height: 1.18;
}

body.page-philosophy .cta-sub {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(61, 61, 61, 0.7);
}

body.page-philosophy .final-cta .trust-btn {
  width: auto;
  min-width: 220px;
  padding: 0 32px;
  margin-top: 44px;
  white-space: nowrap;
}

body.page-philosophy .final-cta .trust-btn span {
  white-space: nowrap;
}

@media (max-width: 768px) {
  body.page-philosophy .cta-heading { font-size: 26px; }
  body.page-philosophy .cta-sub { font-size: 14px; }
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .philo-hero-heading { font-size: 44px; }
  .philo-heading { font-size: 32px; }
  .philo-context-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .philo-context-grid > * { grid-column: auto; }
  .philo-context-grid > :nth-child(4),
  .philo-context-grid > :nth-child(5) { grid-column: auto; }
  .philo-context-grid > :nth-child(5) { grid-column: 1 / span 2; max-width: 50%; justify-self: center; }
}

@media (max-width: 768px) {
  body.page-philosophy main { padding-top: 68px; }
  .philo-hero { padding: 72px 24px 80px; min-height: calc(85svh - 68px); }
  .philo-hero-heading { font-size: 32px; line-height: 1.18; }
  .philo-hero-sub { margin-top: 28px; font-size: 15px; }
  .philo-section { padding: 64px 24px; }
  .philo-heading { font-size: 26px; }
  .philo-body { margin-top: 20px; font-size: 15px; line-height: 1.7; }
  .philo-context-grid { grid-template-columns: 1fr; gap: 14px; margin-top: 44px; }
  .philo-context-grid > *,
  .philo-context-grid > :nth-child(4),
  .philo-context-grid > :nth-child(5) { grid-column: auto; max-width: none; }
  .philo-context { padding: 24px 22px; }
  .philo-context-title { font-size: 19px; }
  .philo-who-list { grid-template-columns: 1fr; gap: 28px; margin-top: 40px; }
}
