/* PathForward Consulting: styles shared by every page.
   Page-specific rules stay in each page's own <style> block, which loads after this file and can override it.
   Header and footer styles live in nav-2.js and footer.js. */

/* ---------- Colors ---------- */
:root {
  --ink: #1B231E;          /* headings, dark text */
  --ink-body: #33392F;     /* body copy */
  --ink-soft: #3A423C;     /* inactive nav links only */
  --muted: #5A6258;        /* captions, roles, breadcrumbs, small meta text */
  --paper: #F6F3ED;        /* page background */
  --paper-light: #FBFAF6;  /* content sections, cards */
  --line: #EDE7DC;         /* section borders */
  --forest: #16271C;       /* dark hero background */
  --forest-card: #1E3A2A;  /* dark sidebar cards */
  --accent: #2A4D38;       /* green accent */
  --sage: #A9C3AC;         /* light green on dark backgrounds */
  --on-dark: rgba(251,250,246,0.88);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { background: var(--paper); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
/* Phones that turn addresses or numbers into links on their own: keep them looking like the text around them. */
a[x-apple-data-detectors] {color: inherit !important; text-decoration: none !important; font: inherit !important; }
img { display: block; max-width: 100%; }

/* Wraps everything inside <body>. clip (not hidden) so position:sticky still works. */
.pfc-page { font-family: 'Public Sans', system-ui, sans-serif; color: var(--ink); background: var(--paper); min-height: 100vh; overflow-x: hidden; overflow-x: clip; }

/* ---------- Layout ---------- */
.pfc-container { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.pfc-section { background: var(--paper-light); border-top: 1px solid var(--line); padding: clamp(56px,6vw,88px) 0; }
/* Sidebars stay in view below the fixed header (nav-2.js sets --header-h). */
.pfc-sticky { position: sticky; top: calc(var(--header-h, 107px) + 24px); }

/* ---------- Breadcrumb ---------- */
.pfc-crumbs { background: var(--paper); border-bottom: 1px solid var(--line); }
.pfc-crumbs-inner { max-width: 1240px; margin: 0 auto; padding: 16px 40px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: 0.04em; }
.pfc-crumb { color: var(--muted); transition: color 0.18s; }
.pfc-crumb:hover { color: var(--ink); }
.pfc-crumb-sep { color: #B8B1A3; }
.pfc-crumb-current { color: var(--ink); font-weight: 500; }

/* ---------- Dark page hero ---------- */
.pfc-page-hero { position: relative; overflow: hidden; background-color: var(--forest); }
.pfc-page-hero-inner { max-width: 1240px; margin: 0 auto; padding: clamp(80px,9vw,120px) 40px; }
.pfc-page-hero-inner--compact { padding: clamp(40px,4.5vw,56px) 40px; }
.pfc-eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.pfc-eyebrow-rule { width: 38px; height: 1px; background: var(--sage); }
.pfc-eyebrow-text { font-size: 12.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); }
.pfc-page-hero-title { margin: 0; font-family: 'Archivo', sans-serif; font-variation-settings: 'wght' 680, 'wdth' 110; font-size: clamp(40px,5vw,64px); line-height: 1.04; letter-spacing: -0.022em; color: #FBFAF6; }
.pfc-page-hero-title--sm { font-size: clamp(28px,3.5vw,44px); line-height: 1.08; }
.pfc-page-hero-lede { margin: 24px 0 0; max-width: 560px; font-size: 18.5px; line-height: 1.6; color: rgba(251,250,246,0.82); font-weight: 300; }

/* ---------- Photo heroes ----------
   The photo is the section's background (or an <img>/<div> layer inside it); .pfc-hero-shade sits on top
   and darkens it, most heavily behind the text on the left. Pages with a warmer or cooler photo set
   --shade (an "r,g,b" triple) on the section. --hero-pos-m repositions a background photo on phones. */
.pfc-photo-hero { --shade: 13,23,16; position: relative; overflow: hidden; background-color: var(--forest); }
.pfc-hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(98deg, rgba(var(--shade),0.96) 0%, rgba(var(--shade),0.86) 34%, rgba(var(--shade),0.55) 66%, rgba(var(--shade),0.22) 100%); }
.pfc-photo-hero .pfc-page-hero-inner { position: relative; z-index: 1; }

/* ---------- Body text ---------- */
.pfc-label { margin: 0 0 22px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.pfc-body { margin: 0; font-size: 18px; line-height: 1.66; color: var(--ink-body); }
/* 22px between paragraphs, and between a paragraph and whatever comes before it */
.pfc-body:not(:first-child) { margin-top: 22px; }
.pfc-body + .pfc-label { margin-top: 22px; }
/* Divider + spacing before a second block of content in the same column (e.g. "Accomplishments") */
.pfc-subsection { margin-top: 48px; padding-top: 40px; border-top: 1px solid var(--line); }
/* Smaller text for cards, callouts and short intros */
.pfc-text-sm { margin: 0; font-size: 16px; line-height: 1.6; color: var(--ink-body); }
.pfc-muted { color: var(--muted); }
/* Bulleted lists in the main column */
.pfc-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.pfc-body + .pfc-list { margin-top: 16px; }
.pfc-list-item { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; line-height: 1.55; color: var(--ink-body); }
.pfc-text-link { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(42,77,56,0.35); text-underline-offset: 3px; transition: text-decoration-color 0.18s; }
.pfc-text-link:hover { text-decoration-color: currentColor; }
.pfc-dot-accent { flex: none; width: 6px; height: 6px; margin-top: 8px; border-radius: 999px; background: var(--accent); }

/* ---------- Dark sidebar cards (project news, pillars) ---------- */
.pfc-side-card { background: var(--forest-card); border-radius: 8px; padding: 32px 28px; }
.pfc-side-card-title { margin: 0; font-size: 10.5px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sage); padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.15); }
.pfc-side-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.pfc-side-list-item { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--on-dark); }
.pfc-dot { flex: none; margin-top: 7px; width: 5px; height: 5px; border-radius: 999px; background: var(--sage); }
.pfc-news-list { list-style: none; margin: 20px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pfc-news-link { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; color: var(--on-dark); padding: 10px 12px; margin: 0 -12px; border-radius: 4px; transition: background 0.18s; }
.pfc-news-link:hover { background: rgba(255,255,255,0.08); }
.pfc-news-date { color: rgba(251,250,246,0.5); font-size: 12.5px; }
.pfc-fade:hover { opacity: 0.75; }

/* ---------- Team profile pages ---------- */
.pfc-profile-grid { display: grid; grid-template-columns: 1fr 340px; gap: clamp(40px,5vw,72px); align-items: start; }
.pfc-profile-photo { overflow: hidden; border-radius: 2px; margin-bottom: 2px; }
.pfc-profile-img { width: 100%; display: block; object-fit: cover; object-position: center top; }
.pfc-profile-card { background: var(--forest-card); border-radius: 2px; padding: 24px 28px 32px; }
.pfc-resume-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px; background: var(--paper-light); color: var(--ink); font-size: 13px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; border-radius: 2px; transition: background 0.18s, color 0.18s; }
.pfc-resume-btn:hover { background: #EDE7DC; }
.pfc-card-divider { border-top: 1px solid rgba(255,255,255,0.15); margin: 20px 0; }
.pfc-profile-meta { display: flex; flex-direction: column; gap: 18px; }
.pfc-meta-label { margin: 0 0 5px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(169,195,172,0.7); }
.pfc-meta-label--spaced { margin-bottom: 12px; }
.pfc-meta-value { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--on-dark); }
.pfc-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pfc-chip { font-size: 12px; padding: 4px 10px; background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.16); color: rgba(251,250,246,0.82); border-radius: 2px; }

/* ---------- Project pages ---------- */
.pfc-project-grid { display: grid; grid-template-columns: 1fr 440px; gap: clamp(40px,5vw,72px); align-items: start; }
.pfc-gallery { background: var(--paper-light); padding: clamp(56px,6vw,88px) 0 0; overflow: hidden; }
.pfc-carousel { aspect-ratio: 16/9; max-height: 560px; width: 100%; position: relative; overflow: hidden; background: var(--forest); border-radius: 6px; }
.pfc-carousel-track { display: flex; width: 100%; height: 100%; transition: transform 0.45s cubic-bezier(.25,.46,.45,.94); }
.pfc-carousel-slide { flex: none; width: 100%; height: 100%; background-color: var(--forest); background-size: cover; background-position: center; }
.pfc-carousel-prev, .pfc-carousel-next { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; background: rgba(0,0,0,0.42); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 22px; z-index: 2; line-height: 1; padding: 0; }
.pfc-carousel-prev { left: 12px; }
.pfc-carousel-next { right: 12px; }
.pfc-carousel-counter { padding: 10px 0; }

/* Pause/play buttons, added by interactive.js / spotlight.js to every slideshow */
.pfc-carousel-toggle, .pfc-spotlight-toggle { display: flex; align-items: center; justify-content: center; padding: 0; border-radius: 999px; cursor: pointer; }
.pfc-carousel-toggle { position: absolute; right: 12px; bottom: 12px; z-index: 2; width: 32px; height: 32px; border: none; background: rgba(0,0,0,0.42); color: #fff; }
.pfc-spotlight-toggle { width: 44px; height: 44px; border: 1px solid #C9C2B4; background: transparent; color: var(--ink); transition: border-color 0.18s ease; }
.pfc-spotlight-toggle:hover { border-color: var(--ink); }
.pfc-carousel-toggle .i-play, .pfc-spotlight-toggle .i-play { display: none; }
.pfc-carousel-toggle.is-paused .i-play, .pfc-spotlight-toggle.is-paused .i-play { display: block; }
.pfc-carousel-toggle.is-paused .i-pause, .pfc-spotlight-toggle.is-paused .i-pause { display: none; }
.pfc-carousel-prev:focus-visible, .pfc-carousel-next:focus-visible, .pfc-carousel-toggle:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- Image rows on the Projects and Expertise overview pages ---------- */
.xp-list{max-width:1160px; margin:0 auto; display:flex; flex-direction:column; gap:18px;}
.xp-row{position:relative; display:flex; align-items:center; min-height:clamp(260px,26vw,330px); padding:clamp(28px,4vw,52px); border-radius:6px; overflow:hidden; isolation:isolate; background:#16271C; color:#FBFAF6; box-shadow:0 4px 18px rgba(0,0,0,0.12); transition:box-shadow 0.4s ease, transform 0.4s ease;}
.xp-img{position:absolute; inset:0; z-index:-2; background-size:cover; background-position:center; transform:scaleX(var(--flip,1)) scale(1.001); transition:transform 0.9s cubic-bezier(.2,.7,.2,1), filter 0.6s ease; filter:saturate(0.92);}
.xp-row::before{content:''; position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg, rgba(13,23,16,0.90) 0%, rgba(13,23,16,0.74) 38%, rgba(13,23,16,0.28) 72%, rgba(13,23,16,0.12) 100%); transition:opacity 0.5s ease;}
.xp-body{display:block; max-width:560px;}
.xp-loc{display:flex; align-items:center; gap:8px; margin-bottom:14px; font-size:12.5px; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; color:#A9C3AC;}
.xp-loc svg{flex:none;}
.xp-title{margin:0; font-family:'Archivo',sans-serif; font-variation-settings:'wght' 640,'wdth' 104; font-size:clamp(26px,3vw,38px); line-height:1.08; letter-spacing:-0.016em; color:#FBFAF6;}
.xp-desc{display:block; margin-top:14px; max-width:46ch; font-size:16.5px; line-height:1.55; font-weight:300; color:rgba(251,250,246,0.82);}
.xp-cta{position:absolute; right:clamp(24px,3.5vw,44px); bottom:clamp(24px,3.5vw,40px); display:flex; align-items:center; gap:14px;}
.xp-cta-label{font-size:12.5px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:#FBFAF6; opacity:0; transform:translateX(8px); transition:opacity 0.35s ease, transform 0.35s ease;}
.xp-cta-dot{display:grid; place-items:center; width:52px; height:52px; border-radius:999px; border:1px solid rgba(251,250,246,0.55); color:#FBFAF6; background:rgba(13,23,16,0.25); -webkit-backdrop-filter:blur(4px); backdrop-filter:blur(4px); transition:background 0.35s ease, color 0.35s ease, border-color 0.35s ease;}
.xp-cta-dot svg{transition:transform 0.35s ease;}

.xp-row:hover, .xp-row:focus-visible{box-shadow:0 18px 40px rgba(27,35,30,0.22); transform:translateY(-3px);}
.xp-row:hover .xp-img, .xp-row:focus-visible .xp-img{transform:scaleX(var(--flip,1)) scale(1.06); filter:saturate(1.05);}
.xp-row:hover::before, .xp-row:focus-visible::before{opacity:0.92;}
.xp-row:hover .xp-cta-label, .xp-row:focus-visible .xp-cta-label{opacity:1; transform:none;}
.xp-row:hover .xp-cta-dot, .xp-row:focus-visible .xp-cta-dot{background:#FBFAF6; color:#16271C; border-color:#FBFAF6;}
.xp-row:hover .xp-cta-dot svg, .xp-row:focus-visible .xp-cta-dot svg{transform:translateX(3px);}
.xp-row:focus-visible{outline:2px solid #6C0000; outline-offset:3px;}

/* Text-on-the-right variant, for photos whose subject sits on the left */
.xp-row--right{justify-content:flex-end;}
.xp-row--right::before{background:linear-gradient(270deg, rgba(13,23,16,0.90) 0%, rgba(13,23,16,0.74) 38%, rgba(13,23,16,0.28) 72%, rgba(13,23,16,0.12) 100%);}
.xp-row--right .xp-cta{right:auto; left:clamp(24px,3.5vw,44px); flex-direction:row-reverse;}
.xp-row--right .xp-cta-label{transform:translateX(-8px);}

@media(max-width:820px){
  /* Phones: photo on top, unobstructed; text in a dark panel below */
  .xp-row, .xp-row--right{display:block; min-height:0; padding:0;}
  .xp-row::before, .xp-row--right::before{display:none;}
  .xp-img{position:relative; display:block; z-index:auto; aspect-ratio:16/10;}
  .xp-body{padding:22px 24px 92px;}
  .xp-cta, .xp-row--right .xp-cta{left:24px; right:auto; bottom:26px; flex-direction:row-reverse;}
  .xp-cta-label, .xp-row--right .xp-cta-label{opacity:1; transform:none;}
  .xp-cta-dot{width:44px; height:44px;}
}
@media(prefers-reduced-motion:reduce){
  .xp-row, .xp-img, .xp-cta-label, .xp-cta-dot svg{transition:none;}
  .xp-row:hover .xp-img{transform:scaleX(var(--flip,1));}
}

/* ---------- Phones and small tablets ---------- */
@media (max-width: 820px) {
  .resp-grid-3 { grid-template-columns: 1fr !important; }
  .resp-grid-2 { grid-template-columns: 1fr !important; }
  .resp-grid-service { display: block !important; }
  .resp-thumb { min-height: 200px !important; width: 100% !important; margin-top: 20px !important; display: block !important; }
  .resp-carousel { grid-template-columns: 1fr !important; }
  .resp-rail { display: none !important; }
  .resp-hero { min-height: 0 !important; }
  /* Photo heroes: text spans the full width, so leave an open band of photo at the top and
     shade top-to-bottom instead, keeping the photo visible and the text readable over it. */
  .pfc-photo-hero { padding-top: 140px; }
  .pfc-hero-shade { background: linear-gradient(180deg, rgba(var(--shade),0.05) 0%, rgba(var(--shade),0.28) 24%, rgba(var(--shade),0.58) 52%, rgba(var(--shade),0.68) 100%); }
  .pfc-photo-hero { text-shadow: 0 1px 2px rgba(0,0,0,0.35), 0 1px 14px rgba(0,0,0,0.55); }
  .pfc-photo-hero[style*="--hero-pos-m"] { background-position: var(--hero-pos-m) !important; }
  /* Team pages: the photo card moves above the bio and stops sticking */
  .resp-sidebar { position: static !important; top: auto !important; order: -1 !important; }
}
