/* ============================================
   FRAMEWORK PAGE — FULL STYLES
   ============================================ */

/* ── HERO ── */
.fw-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center 30%;
  background-attachment: fixed;
  overflow: hidden;
}
.fw-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,23,42,0.88) 0%,
    rgba(15,23,42,0.72) 50%,
    rgba(15,23,42,0.55) 100%
  );
}
.fw-hero__inner {
  position: relative;
  z-index: 1;
  padding: var(--space-24) 0 var(--space-20);
}
.fw-hero__content {
  max-width: 760px;
}

/* Label with flanking lines */
.fw-hero__label {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-5);
}
.fw-hero__label-line {
  flex: 0 0 32px;
  height: 1px;
  background: var(--color-gold);
  opacity: 0.5;
}

.fw-hero__headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 6vw, 72px);
  font-weight: 700;
  line-height: 1.08;
  color: var(--color-white);
  margin-bottom: var(--space-6);
}
.fw-hero__headline em {
  font-style: italic;
  color: var(--color-gold);
  font-family: var(--font-accent);
  font-weight: 400;
}
.fw-hero__sub {
  font-size: clamp(var(--text-base), 1.6vw, var(--text-lg));
  color: rgba(255,255,255,0.78);
  max-width: 620px;
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

/* Pillar chips */
.fw-hero__pillars {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-10);
}
.fw-hero__pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  letter-spacing: var(--tracking-wide);
  transition: background var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
}
.fw-hero__pillar-chip:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.35);
}
.fw-hero__pillar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.fw-hero__pillar-sep {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
  flex-shrink: 0;
}

/* Hero CTAs */
.fw-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.fw-hero__ghost {
  color: rgba(255,255,255,0.85) !important;
  border-color: rgba(255,255,255,0.3) !important;
}
.fw-hero__ghost:hover {
  background: rgba(255,255,255,0.1) !important;
  color: var(--color-white) !important;
  border-color: rgba(255,255,255,0.6) !important;
}

/* Scroll indicator */
.fw-hero__scroll {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.fw-hero__scroll-line {
  display: block;
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(196,168,116,0.8), transparent);
  animation: scroll-pulse 2.5s ease-in-out infinite;
}
@keyframes scroll-pulse {
  0%, 100% { opacity: 0.4; transform: scaleY(0.6); transform-origin: top; }
  50%       { opacity: 1;   transform: scaleY(1);   transform-origin: top; }
}

/* ── PILLAR NAV ── */
.pillar-nav {
  position: sticky;
  top: var(--nav-height);
  z-index: var(--z-sticky);
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pillar-nav::-webkit-scrollbar { display: none; }
.pillar-nav-inner {
  display: flex;
  min-width: max-content;
  padding: 0 var(--space-4);
}
.pillar-nav-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color var(--duration-base) var(--ease-out),
              border-color var(--duration-base) var(--ease-out);
  white-space: nowrap;
}
.pillar-nav-num {
  font-family: var(--font-metric);
  font-size: var(--text-xs);
  opacity: 0.55;
}
.pillar-nav-item:hover,
.pillar-nav-item.active {
  color: var(--color-navy);
}
.pillar-nav-item.active {
  border-bottom-color: var(--pillar-color, var(--color-gold));
}
.pillar-nav-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pillar-color, var(--color-gold));
}

/* ── FRAMEWORK INTRO ── */
.fw-intro {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border-light);
}
.fw-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: start;
}
.fw-intro-text .section-label { margin-bottom: var(--space-3); }
.fw-intro-text h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  margin-bottom: var(--space-6);
}
.fw-intro-text .lead-text {
  font-size: var(--text-xl);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  margin-bottom: var(--space-5);
}
.fw-intro-text p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

/* Pillar flow diagram */
.fw-pillar-flow {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  margin-bottom: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.fw-flow-step {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  position: relative;
}
.fw-flow-step + .fw-flow-step { margin-top: var(--space-1); }
.fw-flow-badge {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.fw-flow-num {
  font-family: var(--font-metric);
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  letter-spacing: 0.05em;
}
.fw-flow-info {
  flex: 1;
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}
.fw-flow-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-navy);
}
.fw-flow-label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
}
.fw-flow-arrow {
  color: var(--color-text-muted);
  opacity: 0.4;
  display: flex;
  align-items: center;
}

/* Stats row */
.fw-intro-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}
.fw-stat {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-5);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.fw-stat__number {
  display: block;
  font-family: var(--font-metric);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-4xl));
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1;
  margin-bottom: var(--space-1);
}
.fw-stat__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: var(--tracking-wide);
}

/* ── PILLAR SECTIONS ── */
.pillar-section {
  padding: var(--space-24) 0;
  position: relative;
  overflow: hidden;
}
.pillar-section:nth-child(odd) {
  background: var(--color-bg);
}
.pillar-section:nth-child(even) {
  background: var(--color-white);
}

.pillar-section__bg-number {
  position: absolute;
  top: var(--space-8);
  right: var(--space-8);
  font-family: var(--font-metric);
  font-size: 11rem;
  font-weight: 700;
  color: rgba(0,0,0,0.04);
  line-height: 1;
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.05em;
}

/* Two-col alternating grid */
.pillar-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.pillar-section__inner--odd  { /* content left, image right — default */ }
.pillar-section__inner--even {
  direction: rtl; /* flips column order */
}
.pillar-section__inner--even > * {
  direction: ltr; /* reset text direction for children */
}

/* Content column */
.pillar-section__header {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  margin-bottom: var(--space-7);
}
.pillar-icon-circle {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1.5px solid rgba(196,168,116,0.2);
}
.pillar-icon-svg {
  width: 40px;
  height: 40px;
  display: block;
}
.pillar-number-name {
  font-family: var(--font-metric);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-1);
}
.pillar-tag {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
  font-family: var(--font-accent);
  margin: 0;
}
.pillar-headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 3.5vw, var(--text-5xl));
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}
.pillar-definition {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: clamp(var(--text-lg), 1.8vw, var(--text-xl));
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
  padding-left: var(--space-5);
  border-left: 3px solid var(--color-gold);
}
.pillar-description {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-8);
}

/* Practice list */
.pillar-practices {
  list-style: none;
  margin: 0 0 var(--space-8);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.pillar-practice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
}
.pillar-practice__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.pillar-practice div { display: flex; flex-direction: column; gap: var(--space-1); }
.pillar-practice strong {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.3;
}
.pillar-practice span {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
}

/* Pillar CTA row */
.pillar-section__cta {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border-light);
}
.pillar-book-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--badge-color, var(--color-gold));
  color: rgba(255,255,255,0.95);
  text-align: center;
  flex-shrink: 0;
}
.pillar-book-count {
  display: block;
  font-family: var(--font-metric);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
}
.pillar-book-badge span:last-child {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1.2;
  text-align: center;
}

/* Image column */
.pillar-section__image-inner {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.pillar-section__img {
  display: block;
  width: 100%;
  height: 600px;
  object-fit: cover;
  object-position: center;
  transition: transform 0.8s var(--ease-out);
}
.pillar-section__image-inner:hover .pillar-section__img {
  transform: scale(1.03);
}
.pillar-section__image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(var(--overlay-color, 15,23,42), 0.0) 40%,
    rgba(var(--overlay-color, 15,23,42), 0.55) 100%
  );
  pointer-events: none;
}
.pillar-section__image-tag {
  position: absolute;
  bottom: var(--space-5);
  left: var(--space-5);
  font-family: var(--font-metric);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: rgba(255,255,255,0.95);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

/* ── NEXT STEP / CTA SECTION ── */
.fw-next-step {
  position: relative;
  padding: var(--space-24) 0;
  overflow: hidden;
}
.fw-next-step__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 40%;
}
.fw-next-step__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(15,23,42,0.92) 0%,
    rgba(15,23,42,0.80) 60%,
    rgba(15,23,42,0.72) 100%
  );
}
.fw-next-step__inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.fw-next-step__label {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--space-4);
}
.fw-next-step__headline {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 5vw, 56px);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  margin-bottom: var(--space-5);
}
.fw-next-step__sub {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.78);
  max-width: 600px;
  margin: 0 auto var(--space-12);
  line-height: var(--leading-relaxed);
}

/* Assessment card */
.fw-next-step__card {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  padding: var(--space-2);
  max-width: 860px;
  margin: 0 auto var(--space-8);
  box-shadow: 0 32px 64px rgba(0,0,0,0.25);
}
.fw-next-step__card-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-8);
  align-items: start;
}
.fw-next-step__card-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: var(--space-2);
}
.fw-next-step__card-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: var(--space-3);
}
.fw-next-step__card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: var(--leading-relaxed);
  margin-bottom: var(--space-5);
}
.fw-next-step__card-features {
  list-style: none;
  margin: 0 0 var(--space-6);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2) var(--space-4);
}
.fw-next-step__card-features li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.fw-next-step__card-features svg { color: var(--color-gold-dark); flex-shrink: 0; }

/* Pillar stack decoration */
.fw-next-step__card-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-width: 200px;
}
.fw-ns-pillar-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.fw-ns-pillar-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-metric);
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.9);
  flex-shrink: 0;
}
.fw-ns-pillar-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-navy);
  min-width: 70px;
}
.fw-ns-pillar-bar {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  opacity: 0.4;
}

/* Secondary alt link */
.fw-next-step__alt {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
}
.fw-next-step__alt a {
  color: var(--color-gold);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fw-next-step__alt a:hover {
  color: #F5E9C0;
}

/* ── PILLAR SECTION ALT BG COLORS ── */
.pillar-section--stabilize { background: #F8F9FB; }
.pillar-section--regulate  { background: var(--color-white); }
.pillar-section--rebuild   { background: #FAF8F5; }
.pillar-section--adapt     { background: var(--color-white); }
.pillar-section--thrive    { background: #FBF8F6; }

/* ── SCROLL ANIMATION STAGGER OVERRIDES ── */
.stagger-2 { animation-delay: 0.12s; }
.stagger-3 { animation-delay: 0.22s; }
.stagger-4 { animation-delay: 0.32s; }
.stagger-5 { animation-delay: 0.44s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .fw-intro-grid {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .fw-intro-visual { max-width: 560px; }
  .pillar-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .pillar-section__inner--even {
    direction: ltr;
  }
  .pillar-section__image {
    order: -1;
  }
  .pillar-section__img { height: 420px; }
  .fw-next-step__card-inner {
    grid-template-columns: 1fr;
  }
  .fw-next-step__card-pillars {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    min-width: unset;
  }
  .fw-ns-pillar-name { display: none; }
  .fw-ns-pillar-bar  { display: none; }
}

@media (max-width: 768px) {
  .fw-hero__headline { font-size: clamp(var(--text-3xl), 9vw, var(--text-5xl)); }
  .fw-hero__pillars  { gap: var(--space-1); }
  .fw-hero__pillar-sep { display: none; }
  .fw-intro-stats { grid-template-columns: 1fr; }
  .pillar-section { padding: var(--space-16) 0; }
  .pillar-section__bg-number { font-size: 6rem; }
  .pillar-section__img { height: 300px; }
  .pillar-section__cta { flex-direction: column; align-items: flex-start; }
  .fw-next-step { padding: var(--space-16) 0; }
  .fw-next-step__card-inner { padding: var(--space-6); }
  .fw-next-step__card-features { grid-template-columns: 1fr; }
  .fw-next-step__card-pillars { grid-template-columns: repeat(5, 1fr); }
  .pillar-nav-num { display: none; }
}

@media (max-width: 480px) {
  .fw-hero__actions { flex-direction: column; align-items: flex-start; }
  .pillar-section__header { flex-direction: column; gap: var(--space-3); }
}

/* ── HIGH-CONTRAST / REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce) {
  .fw-hero { background-attachment: scroll; }
  .pillar-section__img { transition: none; }
  .fw-hero__scroll-line { animation: none; opacity: 0.6; }
}
