/* ==========================================================================
   PropNetwork - "Why PropNetwork?" Section CSS
   Scoped Prefix: pn-why-
   Uses variables.css tokens only — no hardcoded palette colors
   Section #03: Hero → Editorial Intro → Why PropNetwork → Who It's Built For
   Apple / Stripe / Linear aesthetic — premium, minimal, handcrafted
   Reference: Clean white cards, light-teal icon circle, teal divider + link
   ========================================================================== */

/* ---------- Section Shell ---------- */
.pn-why-section {
  position: relative;
  padding: 50px 0 130px 0;
  background-color: #f9fafb;
  overflow: hidden;
  z-index: 2;
}

/* Very subtle dot-mesh texture */
.pn-why-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(15, 118, 110, 0.03) 1.2px, transparent 1.2px);
  background-size: 28px 28px;
  pointer-events: none;
  z-index: 0;
}

/* ---------- Container ---------- */
.pn-why-container {
  position: relative;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
  z-index: 2;
}

/* ---------- Section Header ---------- */
.pn-why-header {
  position: relative;
  max-width: 820px;
  margin-bottom: 60px;
  padding-left: 1.5rem;
}

/* Left vertical gradient accent line */
.pn-why-header-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, #14B8A6 0%, #6366F1 50%, #8B5CF6 100%);
  border-radius: 3px;
}

/* Eyebrow label */
.pn-why-eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--blue-400);
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

/* Main headline */
.pn-why-headline {
  font-family: var(--font-body);
  font-size: clamp(2.1rem, 3.4vw, 2.85rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-dark);
  margin-bottom: 1.1rem;
}

/* Teal gradient accent on headline */
.pn-why-headline-accent {
  background: linear-gradient(90deg, var(--primary) 0%, var(--blue-400) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Sub-description below headline */
.pn-why-desc {
  font-family: var(--font-body);
  font-size: clamp(0.97rem, 1.1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.72;
  color: var(--text-light);
  margin: 0;
  max-width: 680px;
}

/* ==========================================================================
   4-Column Feature Card Grid — Reference Image Style
   ========================================================================== */
.pn-why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-xl);  /* ~40px generous horizontal breathing room */
  /* No outer border, no shadow, no background — sits directly on section bg */
}

/* ---------- Feature Card ---------- */
.pn-feature-card {
  position: relative;
  background: transparent;
  padding: 0.25rem 0.5rem 0.25rem 0.5rem;
  display: flex;
  flex-direction: column;
  cursor: default;
  transition: background 0.22s ease;
  border-right: 1px solid var(--border);
}

/* No divider on the last card */
.pn-feature-card:last-child {
  border-right: none;
}

/* Subtle asymmetry — outer dividers lighter, inner divider stronger */
.pn-feature-card:nth-child(1) { border-right-color: rgba(226, 232, 240, 0.45); }
.pn-feature-card:nth-child(2) { border-right-color: rgba(226, 232, 240, 0.75); }
.pn-feature-card:nth-child(3) { border-right-color: rgba(226, 232, 240, 0.45); }

.pn-feature-card:hover {
  background: transparent;
}

/* ---------- Meta row: numeral + icon side-by-side ---------- */
.pn-feature-card-meta {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  margin-bottom: 1.6rem;
}

/* Large faded editorial numeral — typographic, not decorative */
.pn-feature-card-num {
  font-family: var(--font-heading);  /* Fraunces serif */
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  color: var(--text-light);
  opacity: 0.32;
  letter-spacing: -0.03em;
  user-select: none;
  flex-shrink: 0;
}

/* ---------- Icon — small soft-square, architectural not decorative ---------- */
.pn-feature-card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;                            /* soft square, not circle */
  background: transparent;
  border: 1px solid rgba(15, 118, 110, 0.22);     /* var(--primary) at low opacity */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1.35rem;
  transition: background 0.22s ease, border-color 0.22s ease;
}

.pn-feature-card:hover .pn-feature-card-icon {
  background: var(--blue-50);
  border-color: rgba(15, 118, 110, 0.45);
}

.pn-feature-card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--primary);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Card Title ---------- */
.pn-feature-card-title {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
  letter-spacing: -0.01em;   /* tighter, more confident sans-serif feel */
  margin-bottom: 0.9rem;
}

/* ---------- Card Description ---------- */
.pn-feature-card-desc {
  font-family: var(--font-body);
  font-size: 0.91rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.57;          /* tightened from 1.68 — more editorial */
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

/* ---------- Teal Divider — reference: short ~28-32px teal bar ---------- */
/* Short teal horizontal accent divider — kept, only tall vertical ones removed */
.pn-feature-card-divider {
  width: 30px;                  /* default: short accent line */
  height: 2.5px;
  background: var(--blue-400);  /* teal accent — uses design token */
  border-radius: 2px;
  margin-bottom: 1.6rem;
  flex-shrink: 0;
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1); /* smooth expand & shrink */
}

/* Hover: expand to full card width */
.pn-feature-card:hover .pn-feature-card-divider {
  width: 100%;
}

/* ---------- Explore Link — teal bold with underline-grow animation ---------- */
.pn-feature-card-link {
  position: relative;        /* needed for ::after underline */
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: gap 0.22s ease, color 0.22s ease;
  margin-top: auto;
}

/* Underline grows left-to-right on hover, shrinks back on mouse-out */
.pn-feature-card-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--primary);
  border-radius: 1px;
  transition: width 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.pn-feature-card-link:hover {
  gap: 0.58rem;
  color: var(--blue-600);
}

.pn-feature-card-link:hover::after {
  width: calc(100% - 22px);  /* extends under text, stops before the arrow SVG */
}

.pn-feature-card-link svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.22s ease;
  flex-shrink: 0;
}

.pn-feature-card-link:hover svg {
  transform: translateX(4px);
}

/* ---------- Stagger animation classes ---------- */
.pn-why-header.reveal-up {
  /* Uses existing reveal-up from animations.css */
}

.pn-feature-card[data-delay="0"]  { transition-delay: 0ms;   }
.pn-feature-card[data-delay="1"]  { transition-delay: 80ms;  }
.pn-feature-card[data-delay="2"]  { transition-delay: 160ms; }
.pn-feature-card[data-delay="3"]  { transition-delay: 240ms; }

.pn-feature-card.reveal-up {
  /* Picks up the same reveal-up class the rest of the site uses */
}

/* ==========================================================================
   Responsive Adaptations for Mobile & Tablet Viewports
   ========================================================================== */
@media (max-width: 991.98px) {
  .pn-why-section {
    padding: 40px 0 50px 0;
  }

  .pn-why-container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .pn-why-header {
    margin-bottom: 28px;
    padding-left: 1rem;
    max-width: 100%;
  }

  .pn-why-eyebrow {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
  }

  .pn-why-headline {
    font-size: clamp(1.85rem, 6.8vw, 2.3rem);
    line-height: 1.18;
    margin-bottom: 0.75rem;
  }

  .pn-why-desc {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .pn-why-grid {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .pn-feature-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 1.25rem 1.15rem;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    border-right: none !important;
  }

  .pn-feature-card-icon {
    margin-bottom: 0.85rem;
    width: 36px;
    height: 36px;
    border-radius: 9px;
  }

  .pn-feature-card-title {
    font-size: 1.05rem;
    margin-bottom: 0.45rem;
  }

  .pn-feature-card-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .pn-feature-card-divider {
    margin-bottom: 0;
  }

  .pn-feature-card[data-delay="1"],
  .pn-feature-card[data-delay="2"],
  .pn-feature-card[data-delay="3"] {
    transition-delay: 0ms;
  }
}

@media (max-width: 575.98px) {
  .pn-why-section {
    padding: 32px 0 42px 0;
  }

  .pn-why-header {
    margin-bottom: 22px;
    padding-left: 0.85rem;
  }

  .pn-why-headline {
    font-size: clamp(1.75rem, 7vw, 2.15rem);
  }

  .pn-why-desc {
    font-size: 0.9rem;
  }

  .pn-feature-card {
    padding: 1.15rem 1rem;
  }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .pn-feature-card,
  .pn-feature-card-icon,
  .pn-feature-card-divider,
  .pn-feature-card-link svg {
    transition: none !important;
  }
}
