/**
 * Mission & Vision — Page-Specific Styles
 * File: assets/css/template-mission.css
 *
 * These classes are unique to template-mission.php and do not appear in main.css.
 * Enqueue conditionally alongside the global stylesheet:
 *
 *   if ( is_page_template( 'page-templates/template-mission.php' ) ) {
 *       wp_enqueue_style(
 *           'psp-mission',
 *           get_template_directory_uri() . '/assets/css/template-mission.css',
 *           [ 'psp-main' ],
 *           '1.0.0'
 *       );
 *   }
 *
 * EXCLUDED from this file (already in main.css):
 *   - :root custom properties
 *   - Global resets (*, html, body, h1-h5, a, img)
 *   - .container, .eyebrow
 *   - .breadcrumb and children
 *   - Header / nav / .logo and children
 *   - .hamburger, .mobile-menu and children, .mobile-cta-btn
 *   - footer, .footer-* and children
 *   - .page-nav, .page-nav-inner, .page-nav-item, .page-nav-direction, .page-nav-title
 *   - .seo-h1, .hero-headline (global SEO dual-headline pattern, Schema Section 6)
 *
 * Sections:
 *   1.  Page Anchor Navigation
 *   2.  Hero
 *   3.  Editorial Body
 *   4.  Pull Quote
 *   5.  Sidebar
 *   6.  Beliefs Grid
 *   7.  Vision Section + Pillar Teaser Strip
 *   8.  Responsive — Tablet (1100px)
 *   9.  Responsive — Mobile (900px)
 *   10. Responsive — Small Phone (600px)
 */


/* ─────────────────────────────────────────────────────────────────────────────
   1. PAGE ANCHOR NAVIGATION
   Sticky strip that sits below the 96px header (top: 96px matches header height).
   mission.js drives .is-active via IntersectionObserver.
───────────────────────────────────────────────────────────────────────────── */

.page-anchors {
  background: var(--black);
  border-bottom: 1px solid rgba(184, 184, 184, 0.12);
  position: sticky;
  top: 96px;
  z-index: 50;
}

.page-anchors-inner {
  display: flex;
  gap: 0;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.page-anchors-inner::-webkit-scrollbar {
  display: none;
}

.page-anchor-link {
  padding: 18px 0;
  margin-right: 36px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.page-anchor-link:hover,
.page-anchor-link.is-active {
  color: var(--white);
}

.page-anchor-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--white);
  transition: width 0.25s;
}

.page-anchor-link:hover::after,
.page-anchor-link.is-active::after {
  width: 100%;
}


/* ─────────────────────────────────────────────────────────────────────────────
  HERO
───────────────────────────────────────────────────────────────────────────── */

.motto-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 36px;
  padding: 10px 20px;
  border: 1px solid rgba(184, 184, 184, 0.25);
  background: rgba(184, 184, 184, 0.05);
}

.motto-pill svg {
  color: var(--silver);
  flex-shrink: 0;
}

.motto-pill span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  color: var(--silver-light);
  letter-spacing: 0.04em;
}


/* ─────────────────────────────────────────────────────────────────────────────
   3. EDITORIAL BODY
   Two-column: fluid editorial prose left, fixed-width sticky sidebar right.
───────────────────────────────────────────────────────────────────────────── */

.editorial {
  padding: 120px 0;
}

.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
}

.editorial-body {
  font-size: 17px;
  color: var(--silver-light);
  line-height: 1.85;
  font-weight: 300;
}

.editorial-body h2 {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 800;
  color: var(--white);
  margin: 56px 0 20px;
  line-height: 1.1;
}

.editorial-body h2:first-child {
  margin-top: 0;
}

.editorial-body h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--silver);
}

.editorial-body p {
  margin-bottom: 22px;
}

.editorial-body p:last-child {
  margin-bottom: 0;
}

.editorial-body .lead {
  font-size: 20px;
  color: var(--white);
  font-weight: 400;
  line-height: 1.7;
  margin-bottom: 28px;
}

.editorial-body strong {
  font-weight: 600;
  color: var(--white);
}


/* ─────────────────────────────────────────────────────────────────────────────
   4. PULL QUOTE
   Used twice in the editorial body — Founding Knights quote and brotherhood motto.
───────────────────────────────────────────────────────────────────────────── */

.pull-quote {
  margin: 48px 0;
  padding: 36px 40px;
  border-left: 3px solid var(--silver);
  background: #141414;
}

.pull-quote p {
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 24px);
  font-style: italic;
  color: var(--silver-light);
  line-height: 1.5;
  margin: 0;
  font-weight: 500;
}

.pull-quote cite {
  display: block;
  margin-top: 16px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-style: normal;
}


/* ─────────────────────────────────────────────────────────────────────────────
   5. SIDEBAR
   Sticky info card with motto and key-value metadata rows.
───────────────────────────────────────────────────────────────────────────── */

.editorial-sidebar {
  position: sticky;
  top: 180px; /* 96px header + 48px breadcrumb + 36px anchor strip */
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-card {
  background: #141414;
  border: 1px solid rgba(184, 184, 184, 0.1);
  padding: 32px 28px;
}

.sidebar-label {
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 600;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-label::before {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--silver-dark);
  display: inline-block;
  flex-shrink: 0;
}

.sidebar-motto {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--white);
  font-weight: 500;
  line-height: 1.4;
  margin-bottom: 20px;
}

.sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(184, 184, 184, 0.1);
}

.sidebar-meta-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-meta-key {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 600;
}

.sidebar-meta-val {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--white);
  font-weight: 500;
  line-height: 1.4;
}


/* ─────────────────────────────────────────────────────────────────────────────
   6. BELIEFS GRID (Four Commitments)
   4-column light-background card grid, inverted from the dark page theme.
   The ::before pseudo-element provides the animated left-border reveal on hover.
───────────────────────────────────────────────────────────────────────────── */

.beliefs-section {
  padding: 0 0 120px;
}

.beliefs-header {
  margin-bottom: 56px;
}

.beliefs-header h2 {
  font-size: clamp(30px, 3.5vw, 44px);
  font-weight: 800;
  margin-bottom: 14px;
}

.beliefs-header h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--silver);
}

.beliefs-header p {
  font-size: 17px;
  color: var(--silver);
  max-width: 520px;
  line-height: 1.65;
  font-weight: 300;
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #b0b0b0;
  border: 1px solid #b0b0b0;
}

.belief-card {
  background: #d4d4d4;
  padding: 48px 36px;
  position: relative;
  overflow: hidden;
  transition: background 0.25s, box-shadow 0.25s;
}

.belief-card:hover {
  background: #dcdcdc;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.12);
}

/* Animated left-border accent on hover */
.belief-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 0;
  background: var(--black);
  transition: height 0.35s ease;
}

.belief-card:hover::before {
  height: 100%;
}

.belief-icon {
  width: 42px;
  height: 42px;
  border: 1px solid #d8d8d8;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

/* If using inline SVG icons: */
.belief-icon svg {
  color: #555;
}

/* If using <img> tags (current implementation — global grayscale filter applies): */
.belief-icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.belief-card h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 14px;
}

.belief-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.75;
  font-weight: 400;
}


/* ─────────────────────────────────────────────────────────────────────────────
   7. VISION SECTION + PILLAR TEASER STRIP
   Two-column: vision prose left, compact pillar list right.
   The pillar strip is also light-background (#d4d4d4), mirroring the beliefs grid.
   .vision-pillar renders as either <a> or <div> depending on link field population.
───────────────────────────────────────────────────────────────────────────── */

.vision-section {
  padding: 120px 0;
  background: #141414;
  border-top: 1px solid rgba(184, 184, 184, 0.08);
  border-bottom: 1px solid rgba(184, 184, 184, 0.08);
}

.vision-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.vision-text .eyebrow {
  margin-bottom: 24px;
}

.vision-text h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  margin-bottom: 24px;
  line-height: 1.05;
}

.vision-text h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--silver);
}

.vision-text p {
  font-size: 17px;
  color: var(--silver-light);
  line-height: 1.8;
  font-weight: 300;
  margin-bottom: 20px;
}

.vision-text p:last-of-type {
  margin-bottom: 0;
}

/* Pillar teaser strip — vertical stack with 1px gap borders */
.vision-pillars {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: #b0b0b0;
}

/* Both <div> and <a> variants share the same base styles */
.vision-pillar {
  background: #d4d4d4;
  padding: 28px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: background 0.2s, box-shadow 0.2s;
  text-decoration: none; /* for <a> variant */
  color: inherit;        /* for <a> variant */
}

.vision-pillar:hover {
  background: #dcdcdc;
  box-shadow: inset 3px 0 0 var(--black);
}

/* Per-pillar left-border accent — graduated tones */
.pillar-our-sword  { border-left: 3px solid #0a0a0a; }
.pillar-our-shield { border-left: 3px solid #2a2a2a; }
.pillar-our-armor  { border-left: 3px solid #4a4a4a; }
.pillar-our-steed  { border-left: 3px solid #6a6a6a; }

.pillar-icon {
  flex-shrink: 0;
  margin-top: 6px;
  width:30px;
  height:30px;
}

/* If using inline SVG icons: */
.pillar-icon svg {
  color: #666;
}

/* If using <img> tags (current implementation — global grayscale filter applies): */
.pillar-icon img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  filter: none;
}

.pillar-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pillar-weapon {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #888;
  font-weight: 600;
}

.pillar-virtue {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--black);
  line-height: 1.1;
}

.pillar-desc {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
  font-weight: 400;
  margin-top: 6px;
}


/* ─────────────────────────────────────────────────────────────────────────────
   8. RESPONSIVE — TABLET (1100px)
───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 1100px) {
  .editorial-grid {
    grid-template-columns: 1fr 260px;
    gap: 56px;
  }

  .beliefs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .vision-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   9. RESPONSIVE — MOBILE (900px)
───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 900px) {

  /* Anchor strip hidden on mobile — too narrow for horizontal pills */
  .page-anchors {
    display: none;
  }

  /* Hero */
  .page-hero {
    padding: 72px 0 60px;
  }

  .page-hero h1.seo-h1 {
    font-size: 1px !important; /* re-assert at mobile breakpoint */
  }

  .motto-pill {
    padding: 8px 16px;
  }

  /* Editorial */
  .editorial {
    padding: 56px 0;
  }

  .editorial-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Sidebar unsticks on mobile and flows below the editorial body */
  .editorial-sidebar {
    position: static;
  }

  .editorial-body {
    font-size: 16px;
  }

  .editorial-body .lead {
    font-size: 18px;
  }

  .pull-quote {
    padding: 24px;
  }

  /* Beliefs */
  .beliefs-section {
    padding: 0 0 56px;
  }

  .beliefs-header {
    margin-bottom: 36px;
  }

  .beliefs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .belief-card {
    padding: 32px 24px;
  }

  /* Vision */
  .vision-section {
    padding: 64px 0;
  }

  .vision-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .vision-pillars {
    margin-top: 0;
  }

  .vision-pillar {
    padding: 22px 24px;
  }
}


/* ─────────────────────────────────────────────────────────────────────────────
   10. RESPONSIVE — SMALL PHONE (600px)
───────────────────────────────────────────────────────────────────────────── */

@media (max-width: 600px) {
  .beliefs-grid {
    grid-template-columns: 1fr;
  }

  .belief-card {
    padding: 28px 20px;
  }

  .motto-pill {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .vision-pillar {
    padding: 18px 20px;
    gap: 14px;
  }

  .editorial-body h2 {
    font-size: 24px;
  }

  .vision-text h2 {
    font-size: 28px;
  }
}