/**
 * page-squire.css
 * Page-specific styles for template-squire.php
 * Enqueued via $template_css_map as 'psp-page-squire' (depends: psp-main)
 *
 * Omitted (covered in main.css):
 *   - CSS custom properties / tokens (:root)
 *   - Global reset, body, a, img
 *   - .container
 *   - header / nav / .logo / .nav-links / .nav-dropdown / .nav-cta
 *   - .hamburger / .mobile-menu and all mobile drawer styles
 *   - .breadcrumb / .breadcrumb-inner / .breadcrumb-home
 *   - .page-nav / .page-nav-inner / .page-nav-item
 *   - footer and all footer sub-elements
 *   - .btn-primary / .btn-secondary / .btn-arrow
 *   - .eyebrow (global)
 *   - .seo-h1 / .hero-headline (global hero headline pattern)
 */


/* ── PAGE ANCHORS ──────────────────────────────────────────────────────────── */
.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;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 40px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.page-anchors-inner::-webkit-scrollbar { display: none; }

.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;
}
.anchor-link:hover { color: var(--white); }
.anchor-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--white);
  transition: width 0.25s;
}
.anchor-link:hover::after { width: 100%; }


/* ── INTAKE BANNER ─────────────────────────────────────────────────────────── */
.intake-banner {
  background: #141414;
  border-bottom: 1px solid rgba(184,184,184,0.1);
  padding: 18px 0;
}
.intake-banner p {
  font-size: 14px;
  color: var(--silver);
  text-align: center;
  font-weight: 400;
}


/* ── OVERVIEW SECTION ──────────────────────────────────────────────────────── */
.overview-section { padding: 120px 0; }

.overview-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 80px;
  align-items: start;
}

/* Body column */
.overview-body {
  font-size: 17px;
  color: var(--silver-light);
  line-height: 1.85;
  font-weight: 300;
}
.overview-body h2 {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 800;
  color: var(--white);
  margin: 48px 0 18px;
  line-height: 1.1;
}
.overview-body h2:first-child { margin-top: 0; }
.overview-body h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--silver);
}
.overview-body p { margin-bottom: 22px; }
.overview-body p:last-child { margin-bottom: 0; }
.overview-body strong { font-weight: 600; color: var(--white); }

/* Not-pledging callout */
.not-pledging {
  margin: 40px 0;
  padding: 28px 32px;
  border: 1px solid rgba(184,184,184,0.15);
  background: #141414;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.not-pledging-icon {
  flex-shrink: 0;
  color: var(--silver-dark);
  margin-top: 2px;
}
.not-pledging-text {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.7;
}
.not-pledging-text strong { color: var(--silver-light); }

/* Sidebar */
.overview-sidebar {
  position: sticky;
  top: 160px;
  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: 10px;
}
.sidebar-label::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--silver-dark);
}
.sidebar-stat-num {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 800;
  line-height: 0.9;
  background: var(--silver-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
  letter-spacing: -0.03em;
}
.sidebar-stat-label {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 600;
}
.sidebar-stat-desc {
  font-size: 13px;
  color: var(--silver);
  line-height: 1.55;
  margin-top: 8px;
}


/* ── SQUIRE TASKS SECTION ──────────────────────────────────────────────────── */
.tasks-section { padding: 0 0 120px; }

.tasks-header { margin-bottom: 56px; }
.tasks-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  margin-bottom: 12px;
}
.tasks-header h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--silver);
}
.tasks-header p {
  font-size: 16px;
  color: var(--silver);
  max-width: 520px;
  line-height: 1.65;
  font-weight: 300;
}

/* Task grid — light background inverted card design */
.tasks-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: #b0b0b0;
  border: 1px solid #b0b0b0;
}
.task-card {
  background: #d4d4d4;
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: background 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.task-card:hover {
  background: #dcdcdc;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.task-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--black);
  transition: height 0.3s ease;
}
.task-card:hover::before { height: 100%; }

.task-num {
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 800;
  line-height: 0.9;
  color: rgba(0,0,0,0.08);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}
.task-icon {
  width: 44px; height: 44px;
  border: 1px solid rgba(0,0,0,0.1);
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.task-icon svg,
.task-icon .task-icon-img { color: var(--black-2); }
.task-icon-img {
  width: 22px; height: 22px;
  object-fit: contain;
  filter: brightness(0); /* force black to match SVG icons */
}
.task-title {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.2;
}
.task-note {
  font-size: 13px;
  color: #555;
  line-height: 1.6;
}

/* Payment callout — sits inside .tasks-grid after the repeater loop */
.payment-callout {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  margin-top: 0;
  padding: 32px 36px;
  background: var(--silver-light);
  border: 1px solid rgba(184,184,184,0.1);
  /* Span full grid width */
  grid-column: 1 / -1;
}
.payment-callout:hover {
  background: #dcdcdc;
}
.payment-callout-icon {
  width: 48px; height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
}
.payment-callout-icon svg { color: var(--black-2); }
.payment-callout-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.payment-callout-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--silver-dark);
  font-weight: 600;
  margin-bottom: 4px;
}
.payment-callout-heading {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--black-3);
  margin-bottom: 10px;
  line-height: 1.2;
}
.payment-callout p {
  font-size: 14px;
  color: var(--silver-dark);
  line-height: 1.7;
  font-weight: 300;
}


/* ── BEYOND THE SQUIRE SECTION ─────────────────────────────────────────────── */
.beyond-section {
  padding: 0 0 120px;
  background: var(--black);
}
.beyond-inner {
  border-top: 1px solid rgba(184,184,184,0.1);
  padding-top: 80px;
}
.beyond-header {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.beyond-header h2 {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 800;
  line-height: 1.05;
}
.beyond-header h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--silver);
}
.beyond-header > p {
  font-size: 16px;
  color: var(--silver);
  line-height: 1.65;
  font-weight: 300;
}
.beyond-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(184,184,184,0.1);
}
.beyond-item {
  background: #141414;
  padding: 40px 36px;
  display: flex;
  gap: 20px;
  transition: background 0.2s;
}
.beyond-item:hover { background: #1c1c1c; }
.beyond-icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(184,184,184,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
}
.beyond-icon svg { color: var(--silver); }
.beyond-body h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.2;
}
.beyond-body p {
  font-size: 14px;
  color: var(--silver);
  line-height: 1.7;
  font-weight: 300;
}


/* ── CTA STRIP ─────────────────────────────────────────────────────────────── */
.cta-strip {
  background: #141414;
  border-top: 1px solid rgba(184,184,184,0.08);
  border-bottom: 1px solid rgba(184,184,184,0.08);
  padding: 72px 0;
}
.cta-strip-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 48px;
  flex-wrap: wrap;
}
.cta-strip-text h2 {
  font-size: clamp(26px, 3.5vw, 40px);
  font-weight: 800;
  margin-bottom: 10px;
}
.cta-strip-text h2 em {
  font-style: italic;
  font-weight: 500;
  color: var(--silver);
}
.cta-strip-text p {
  font-size: 16px;
  color: var(--silver);
  max-width: 480px;
  line-height: 1.6;
  font-weight: 300;
}
.cta-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-shrink: 0;
}


/* ── RESPONSIVE ────────────────────────────────────────────────────────────── */

/* Tablet — 1100px */
@media (max-width: 1100px) {
  .tasks-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr 280px; gap: 56px; }
}

/* Mobile — 900px */
@media (max-width: 900px) {
  .page-anchors { display: none; }

  .page-hero { padding: 72px 0 64px; }
  .hero-content h1 { font-size: clamp(36px, 10vw, 52px); }

  .overview-section { padding: 72px 0; }
  .overview-grid { grid-template-columns: 1fr; }
  .overview-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1px;
  }
  .sidebar-card { flex: 1; min-width: 140px; }

  .tasks-section { padding: 0 0 72px; }
  .tasks-grid { grid-template-columns: repeat(2, 1fr); }

  .beyond-section { padding: 0 0 72px; }
  .beyond-header { grid-template-columns: 1fr; gap: 20px; }
  .beyond-grid { grid-template-columns: 1fr; }

  .cta-strip { padding: 56px 0; }
  .cta-strip-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }
}

/* Small phone — 600px */
@media (max-width: 600px) {
  .tasks-grid { grid-template-columns: 1fr; }
  .task-card { padding: 28px 22px; }
  .beyond-item { padding: 28px 24px; gap: 16px; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .payment-callout { padding: 24px 20px; gap: 16px; flex-direction: column; }
}
