/* ================================================================
   People Pathfinder — "Frequency" Design System
   ================================================================
   Concept  : Clean editorial / modern app magazine.
              All-white background, generous space, Outfit typeface.
              Orange is used as a FILL color (footer, card hover,
              section pills) — not just as an accent line.
              No dark hero sections. No hard box-shadow offsets.
              No dot-grid textures. No serif fonts.

   Unique vs all other sites in this project:
   1. Pure-white header — no background color, no bottom border line
   2. Orange FULL-BACKGROUND footer (all other sites use dark footer)
   3. Article cards flip to orange fill on hover (color-invert cards)
   4. Hero image framed with an orange ring/glow shadow
   5. Pill-shaped active nav indicator (filled orange pill)
   6. Rounded design system throughout (12-20px radii)
   7. Two-column article card grid (not list rows, not timeline)
   8. Soft layered shadows — no hard offset tricks
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #FAFAFC;
  color: #191923;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: #004E98; text-decoration: none; }
a:hover { color: #FF6700; }

:root {
  --primary:    #121E2A;
  --orange:     #FF6700;
  --blue:       #004E98;
  --bg:         #FAFAFC;
  --bg-gray:    #F3F4F7;
  --text:       #191923;
  --muted:      #6B7A8D;
  --border:     #E2E8F0;
  --card:       #ffffff;
  --wrap:       1200px;
  --text-w:     740px;
  --hh:         68px;
  --r:          12px;
  --r-lg:       20px;
  --sh:         0 2px 8px rgba(18,30,42,0.06), 0 8px 24px rgba(18,30,42,0.07);
  --sh-md:      0 4px 16px rgba(18,30,42,0.09), 0 16px 40px rgba(18,30,42,0.08);
  --sh-lg:      0 8px 32px rgba(18,30,42,0.12), 0 24px 56px rgba(18,30,42,0.09);
}

/* ── Reading progress ── */
#reading-progress {
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 3px;
  background: var(--orange);
  z-index: 2000;
  transition: width 0.1s linear;
}

/* ── Layout helpers ── */
.wrapper { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }
.text-content { max-width: var(--text-w); margin: 0 auto; }

/* ==========================================================
   HEADER — pure white, no border, pill active link
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #FAFAFC;
  height: var(--hh);
  /* Very subtle shadow so header "floats" over content */
  box-shadow: 0 1px 0 var(--border), 0 4px 16px rgba(18,30,42,0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--hh);
  gap: 24px;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-link img {
  height: 36px;
  width: auto;
  /* Logo has dark colors — visible on white bg without filter */
}

/* Nav */
.site-nav { display: flex; align-items: center; gap: 4px; }

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  padding: 7px 16px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}
.nav-link:hover { background: var(--bg-gray); color: var(--primary); }
.nav-link.active {
  background: var(--orange);
  color: #fff;
}
.nav-link.active:hover { color: #fff; }

/* Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 7px; background: none; border: none; cursor: pointer;
  border-radius: var(--r);
  transition: background 0.2s;
}
.menu-toggle:hover { background: var(--bg-gray); }
.menu-toggle span {
  display: block; height: 2px;
  background: var(--primary); border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile overlay */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: var(--hh) 0 0 0;
  background: #FAFAFC;
  z-index: 800;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px;
}
.mobile-overlay.open { display: flex; }
.mobile-overlay .nav-link {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--primary);
  padding: 12px 32px;
  border-radius: 100px;
}
.mobile-overlay .nav-link.active {
  background: var(--orange);
  color: #fff;
}

/* ==========================================================
   HERO — index page (white bg, image with orange ring)
   ========================================================== */
.page-hero {
  background: var(--bg);
  padding: 80px 0 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,103,0,0.1);
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-text-col h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.8rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.intro-text {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--muted);
}
.intro-text p { margin-bottom: 12px; }
.intro-text p:last-child { margin-bottom: 0; }

/* Image framed with orange ring */
.hero-image-col {
  padding: 12px;
}
.hero-image-col img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow:
    0 0 0 4px var(--orange),
    0 0 0 8px rgba(255,103,0,0.15),
    var(--sh-lg);
}

/* Wave divider below hero */
.hero-wave {
  display: block;
  width: 100%;
  margin-top: 64px;
  overflow: hidden;
  line-height: 0;
}
.hero-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

/* ==========================================================
   ADDING-SECTION (injected from JSON)
   ========================================================== */
.adding-section-wrap {
  padding: 80px 0;
  background: var(--bg);
}
.adding-section-wrap h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.adding-section-wrap h3 { font-family: 'Outfit', sans-serif; }
.adding-section-wrap img {
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

/* ==========================================================
   SLIDER (navy — only dark section, clean contrast)
   ========================================================== */
.slider-wrap {
  background: var(--primary);
  padding: 80px 0;
}

.slider-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}

.slider-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.slider-title {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-top: 4px;
}

.slider-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.slider-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.slider-btn:hover {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.slider-carousel {
  border-radius: var(--r-lg);
  overflow: hidden;
}
.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.slide { flex-shrink: 0; width: 100%; }
.slide img {
  width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
}

/* Dots indicator */
.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}
.slider-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
  border: none;
  padding: 0;
}
.slider-dot.active {
  background: var(--orange);
  transform: scale(1.25);
}

/* ==========================================================
   FAQ ACCORDION
   ========================================================== */
.faq-wrap {
  background: var(--bg-gray);
  padding: 80px 0;
}

.section-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.eyebrow-tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,103,0,0.1);
  padding: 5px 14px;
  border-radius: 100px;
}
.eyebrow-title {
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.01em;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ppf-faq-item {
  background: var(--card);
  border-radius: var(--r);
  box-shadow: var(--sh);
  overflow: hidden;
  transition: box-shadow 0.2s;
}
.ppf-faq-item.active {
  box-shadow: var(--sh-md);
}

.ppf-faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: none; border: none;
  cursor: pointer; text-align: left;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
}
.ppf-faq-question:hover { color: var(--orange); }

.ppf-faq-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-gray);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 1.3rem;
  color: var(--orange);
  transition: transform 0.3s, background 0.2s;
  font-weight: 400;
  line-height: 1;
}
.ppf-faq-item.active .ppf-faq-icon {
  transform: rotate(45deg);
  background: var(--orange);
  color: #fff;
}

.ppf-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.ppf-faq-answer-inner {
  padding: 0 24px 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--muted);
}

/* ==========================================================
   ARTICLES LIST — 2-column card grid, color-flip on hover
   ========================================================== */
.articles-hero {
  background: var(--bg);
  padding: 80px 0 60px;
}
.articles-hero .page-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255,103,0,0.1);
  padding: 5px 14px;
  border-radius: 100px;
  display: inline-block;
  margin-bottom: 20px;
}
.articles-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1.12;
}
.articles-hero .hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  margin-top: 16px;
}

.articles-grid-section { padding: 24px 0 80px; }

.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Color-flip card: white → orange on hover */
.art-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 0;
  box-shadow: var(--sh);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  color: inherit;
}
.art-card:hover {
  background: var(--orange);
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}

.art-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
}
.art-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.art-card:hover .art-card-img img {
  transform: scale(1.06);
}

.art-card-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 28px 32px 32px;
  flex: 1;
}

.art-card-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange);
  background: rgba(255,103,0,0.1);
  padding: 4px 12px;
  border-radius: 100px;
  display: inline-block;
  align-self: flex-start;
  transition: color 0.3s, background 0.3s;
}
.art-card:hover .art-card-num {
  color: #fff;
  background: rgba(255,255,255,0.25);
}

.art-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.4;
  letter-spacing: -0.01em;
  transition: color 0.3s;
  flex: 1;
}
.art-card:hover .art-card-title { color: #fff; }

.art-card-arrow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--orange);
  transition: color 0.3s;
}
.art-card-arrow::after {
  content: '→';
  font-size: 1.1rem;
  transition: transform 0.2s;
}
.art-card:hover .art-card-arrow { color: rgba(255,255,255,0.8); }
.art-card:hover .art-card-arrow::after { transform: translateX(4px); }

/* ==========================================================
   ARTICLE PAGE
   ========================================================== */
.article-hero {
  background: var(--bg);
  padding: 60px 0 48px;
  border-bottom: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb-sep { color: var(--border); }

.article-hero h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.article-body-wrap { padding: 64px 0 56px; }

.article-body h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
  margin: 44px 0 16px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  /* Unique: orange left tick on h2 */
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.article-body h2::before {
  content: '';
  display: block;
  flex-shrink: 0;
  width: 4px;
  height: 1.4em;
  background: var(--orange);
  border-radius: 2px;
  margin-top: 3px;
}
.article-body h2:first-child { margin-top: 0; }

.article-body p {
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.82;
  color: var(--text);
}
.article-body img {
  width: 100%;
  margin: 36px 0;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 52px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-gray);
  padding: 12px 24px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.btn-back:hover {
  background: var(--orange);
  color: #fff;
}

/* ==========================================================
   THIRD PAGE
   ========================================================== */
.third-page-hero {
  background: var(--bg);
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}
.third-page-hero h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.third-page-body { padding: 64px 0; }
.third-page-body p {
  font-size: 1rem;
  line-height: 1.82;
  margin-bottom: 20px;
  color: var(--text);
}
.third-page-body img {
  width: 100%;
  margin: 32px 0;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
}
.third-page-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}
.third-page-body h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin: 28px 0 12px;
}
.third-page-body .mapping-block {
  border-radius: var(--r) !important;
  box-shadow: var(--sh) !important;
  transition: box-shadow 0.2s, transform 0.2s !important;
  border: 1px solid var(--border) !important;
}
.third-page-body .mapping-block:hover {
  box-shadow: var(--sh-md) !important;
  transform: translateY(-3px);
}
.third-page-body .mapping-block img {
  border-radius: calc(var(--r) - 2px) !important;
  box-shadow: none !important;
  margin: 0 0 16px !important;
}

/* ==========================================================
   FOOTER — orange full-bleed (completely unique)
   ========================================================== */
.site-footer {
  background: #CC5200;
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  margin-bottom: 24px;
}
.footer-logo img {
  height: 36px;
  width: auto;
  filter: invert(1);
  opacity: 0.95;
}
.footer-nav {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.footer-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  padding: 6px 16px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}
.footer-nav a:hover {
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.footer-copy {
  text-align: center;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; padding-bottom: 0; }
  .hero-image-col { order: -1; padding: 0; }
  .articles-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; gap: 20px; }
  .footer-logo { display: flex; justify-content: center; }
  .footer-nav { justify-content: center; }
}

@media (max-width: 768px) {
  .wrapper { padding: 0 20px; }
  .site-nav { display: none; }
  .menu-toggle { display: flex; }
  .page-hero { padding: 56px 0 0; }
  .hero-text-col h1 { font-size: 2rem; }
  .adding-section-wrap, .slider-wrap, .faq-wrap { padding: 56px 0; }
}

@media (max-width: 480px) {
  .hero-grid { gap: 32px; }
  .art-card { padding: 24px; }
}
