/* ═══════════════════════════════════════
   NEW YORK INVESTIGATORS — GLOBAL STYLES
   shared.css — light theme, navy ink + credential gold
═══════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand color system: credential gold on light theme, navy ink authority bands */
  --accent: #9C7A1E;        /* primary accent — gold (readable on white) */
  --accent-hot: #B8922A;    /* hover */
  --accent-deep: #7A5E13;   /* deep gold for gradients */
  --accent-bright: #E0B84D; /* bright gold — fills & dark bands */

  /* Tier colors */
  --verified: #2F6DB5;      /* NYI Verified — steel blue */
  --certified: #9C7A1E;     /* NYI Certified — gold */
  --fellow: #0A1B30;        /* NYI Fellow — navy w/ gold trim */

  /* Light surface system */
  --bg: #FFFFFF;            /* primary background */
  --bg-soft: #F6F5F1;       /* alternating section bg — warm ivory */
  --panel: #FFFFFF;         /* card background */
  --border: #E6E2D8;        /* subtle border for cards / sections */
  --text: #121A26;          /* primary text color — near-ink */
  --grey: #57606E;          /* secondary text */

  /* Dedicated dark surfaces for contrast bands (oath, footer) */
  --ink: #0A1B30;           /* brand navy for contrast bands */
  --ink-soft: #12294A;      /* contrast cards */

  --font-head: 'Bebas Neue', sans-serif;
  --font-sub: 'Barlow Condensed', sans-serif;
  --font-body: 'Barlow', sans-serif;
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ── GOLD BAR ── credential accent divider */
.gold-bar {
  height: 6px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright) 40%, var(--accent-deep) 80%);
}

/* ── GLASS PACK ── light frosted glass */
.glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid rgba(18, 26, 38, 0.06);
  box-shadow: 0 4px 24px rgba(10, 27, 48, 0.06);
}
.glass-strong {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(18, 26, 38, 0.08);
  box-shadow: 0 8px 32px rgba(10, 27, 48, 0.07);
}

/* ── NAV ── light glass */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  padding: 20px 56px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s, padding 0.3s, backdrop-filter 0.3s, box-shadow 0.3s;
}
nav.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 13px 56px;
  border-bottom: 1px solid rgba(18, 26, 38, 0.07);
  box-shadow: 0 2px 12px rgba(10, 27, 48, 0.06);
}
.logo-link { display: flex; align-items: center; text-decoration: none; color: var(--text); }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-sub); font-weight: 700; font-size: 0.82rem;
  letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: rgba(18, 26, 38, 0.65);
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a.active { border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.nav-cta {
  color: #fff !important;
  background: var(--ink) !important;
  padding: 10px 28px;
  clip-path: polygon(8px 0%, 100% 0%, calc(100% - 8px) 100%, 0% 100%);
  transition: background 0.2s !important;
  border-bottom: none !important;
}
.nav-cta:hover { background: var(--ink-soft) !important; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--text); }
.mobile-menu {
  display: none; position: fixed; inset: 0;
  background: rgba(255, 255, 255, 0.98); z-index: 199;
  flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-head); font-size: 2.4rem;
  letter-spacing: 0.04em; text-decoration: none;
  color: var(--text); transition: color 0.2s;
}
.mobile-menu a:hover { color: var(--accent); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 160px 56px 80px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; right: 0; top: 0; bottom: 0;
  width: 40%;
  background: linear-gradient(to left, rgba(156, 122, 30, 0.07), transparent);
}
.page-tag {
  font-family: var(--font-sub); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.page-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }
.page-h1 {
  font-family: var(--font-head);
  font-size: clamp(3.2rem, 6.5vw, 6.4rem);
  line-height: 0.9; letter-spacing: 0.02em;
  max-width: 940px;
}
.page-h1 span { color: var(--accent); }
.page-sub {
  font-size: 1.05rem; color: var(--grey);
  max-width: 580px; line-height: 1.75; margin-top: 24px;
}

/* ── SECTION SHARED ── */
section { padding: 96px 56px; }
.section-tag {
  font-family: var(--font-sub); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.section-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--accent); }
h2 {
  font-family: var(--font-head);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  line-height: 0.93; letter-spacing: 0.02em; margin-bottom: 20px;
}
h2 span { color: var(--accent); }
h3 {
  font-family: var(--font-sub); font-size: 1.4rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 12px;
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--font-sub); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  background: var(--accent-bright);
  padding: 15px 44px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.15s;
  display: inline-block; border: none; cursor: pointer;
  box-shadow: 0 4px 16px rgba(224, 184, 77, 0.3);
}
.btn-primary:hover { background: var(--accent-hot); color: #fff; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(184, 146, 42, 0.35); }
.btn-ghost {
  font-family: var(--font-sub); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: rgba(18, 26, 38, 0.7);
  border: 1px solid rgba(18, 26, 38, 0.22);
  padding: 15px 44px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  transition: color 0.2s, border-color 0.2s, transform 0.15s, background 0.2s;
  display: inline-block; background: transparent;
}
.btn-ghost:hover { color: var(--accent-deep); border-color: var(--accent); background: rgba(156, 122, 30, 0.05); transform: translateY(-2px); }

/* ── CTA BAND ── */
.cta-band { background: var(--ink); padding: 80px 56px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band h2 span { color: var(--accent-bright); }
.cta-band p { color: rgba(235, 240, 248, 0.7); font-size: 1.05rem; margin: 14px 0 36px; }
.btn-gold {
  font-family: var(--font-sub); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
  background: var(--accent-bright);
  padding: 17px 52px;
  clip-path: polygon(12px 0%, 100% 0%, calc(100% - 12px) 100%, 0% 100%);
  display: inline-block; transition: background 0.2s;
}
.btn-gold:hover { background: #EDC968; }

/* ── FOOTER ── brand navy */
footer {
  background: var(--ink);
  padding: 60px 56px 28px;
  border-top: 1px solid var(--ink-soft);
  color: #EBF0F8;
}
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-tagline { font-size: 0.88rem; color: rgba(235,240,248,0.55); line-height: 1.7; margin: 14px 0 20px; max-width: 280px; }
.footer-email { font-family: var(--font-sub); font-size: 0.88rem; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-bright); text-decoration: none; display: block; margin-bottom: 6px; }
.footer-col-title { font-family: var(--font-sub); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(235,240,248,0.45); margin-bottom: 18px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { text-decoration: none; color: rgba(235,240,248,0.65); font-size: 0.86rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--accent-bright); }
.footer-bottom { border-top: 1px solid rgba(235,240,248,0.1); padding-top: 20px; display: flex; justify-content: space-between; align-items: center; }
.footer-copy { font-size: 0.78rem; color: rgba(235,240,248,0.4); }

/* ── FADE UP ── */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.65s, transform 0.65s; }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── FORMS ── light theme */
.cf { display: flex; flex-direction: column; gap: 14px; }
.cf input, .cf textarea, .cf select {
  background: #FFFFFF; border: 1px solid var(--border);
  color: var(--text); padding: 13px 18px;
  font-family: var(--font-body); font-size: 0.92rem;
  outline: none; transition: border-color 0.2s; width: 100%;
}
.cf input:focus, .cf textarea:focus, .cf select:focus { border-color: var(--accent); }
.cf input::placeholder, .cf textarea::placeholder { color: rgba(18, 26, 38, 0.35); }
.cf select { color: rgba(18, 26, 38, 0.7); appearance: none; }
.cf textarea { resize: vertical; min-height: 130px; }
.cf label { font-family: var(--font-sub); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); margin-bottom: -6px; }
.cf-btn {
  background: var(--accent-bright); color: var(--ink);
  font-family: var(--font-sub); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 15px 40px; border: none; cursor: pointer;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  transition: background 0.2s, transform 0.15s; align-self: flex-start;
  box-shadow: 0 4px 16px rgba(224, 184, 77, 0.3);
}
.cf-btn:hover { background: var(--accent-hot); color: #fff; transform: translateY(-2px); }

/* ── TIER / CREDENTIAL CARDS ── */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
.tier-card {
  background: var(--panel); border: 1px solid var(--border);
  border-top: 4px solid var(--border);
  padding: 40px 32px; position: relative; overflow: hidden;
  box-shadow: 0 2px 12px rgba(10, 27, 48, 0.04);
  transition: transform 0.25s, box-shadow 0.25s;
}
.tier-card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(10, 27, 48, 0.1); }
.tier-card.t-verified { border-top-color: var(--verified); }
.tier-card.t-certified { border-top-color: var(--certified); }
.tier-card.t-fellow { border-top-color: var(--ink); background: linear-gradient(180deg, #FCFAF4, #fff); }
.tier-label { font-family: var(--font-sub); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--grey); margin-bottom: 10px; }
.tier-name { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; margin-bottom: 6px; }
.t-verified .tier-name { color: var(--verified); }
.t-certified .tier-name { color: var(--certified); }
.t-fellow .tier-name { color: var(--ink); }
.tier-req { list-style: none; display: flex; flex-direction: column; gap: 9px; margin-top: 22px; }
.tier-req li { font-size: 0.9rem; color: rgba(18, 26, 38, 0.75); padding-left: 22px; position: relative; }
.tier-req li::before { content: '✓'; position: absolute; left: 0; color: var(--accent); font-weight: 700; }

/* ── BADGE CHIPS ── shown on member cards + profiles */
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-sub); font-weight: 700; font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 12px; border: 1px solid var(--border);
  color: var(--grey); background: var(--bg-soft);
}
.chip-verified { color: var(--verified); border-color: rgba(47, 109, 181, 0.4); background: rgba(47, 109, 181, 0.07); }
.chip-certified { color: var(--accent-deep); border-color: rgba(156, 122, 30, 0.45); background: rgba(224, 184, 77, 0.12); }
.chip-fellow { color: #fff; border-color: var(--ink); background: var(--ink); }
.chip-fellow::before { content: '★'; color: var(--accent-bright); }
.chip-tenure { color: var(--ink-soft); border-color: rgba(18, 41, 74, 0.3); background: rgba(18, 41, 74, 0.05); }
.chip-rep { color: #A05A00; border-color: rgba(200, 120, 0, 0.35); background: rgba(255, 170, 40, 0.1); }
.chip-rep::before { content: '★'; }

/* ── MEMBER CARDS (directory) ── */
.member-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.member-card {
  background: var(--panel); border: 1px solid var(--border);
  text-decoration: none; color: var(--text);
  padding: 30px 28px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 2px 12px rgba(10, 27, 48, 0.04);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.member-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 28px rgba(156, 122, 30, 0.12); }
.member-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.member-name { font-family: var(--font-sub); font-size: 1.25rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.2; }
.member-loc { font-size: 0.85rem; color: var(--grey); display: flex; align-items: center; gap: 6px; }
.member-loc::before { content: '◈'; color: var(--accent); font-size: 0.7rem; }
.member-skills { font-size: 0.85rem; color: var(--grey); line-height: 1.6; }
.member-skills strong { color: var(--text); font-weight: 600; }
.member-since { font-family: var(--font-sub); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; }
.member-since .view { color: var(--accent-deep); }

/* ── DIRECTORY FILTER BAR ── */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; align-items: center; }
.filter-label { font-family: var(--font-sub); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); margin-right: 6px; }
.filter-btn {
  font-family: var(--font-sub); font-weight: 700; font-size: 0.78rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  padding: 9px 20px; border: 1px solid var(--border); background: #fff;
  color: var(--grey); cursor: pointer; transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.filter-btn.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ── STAT CARDS ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); padding: 30px 26px; box-shadow: 0 2px 12px rgba(10, 27, 48, 0.04); }
.stat-n { font-family: var(--font-head); font-size: 2.6rem; line-height: 1; color: var(--accent); margin-bottom: 8px; }
.stat-l { font-family: var(--font-sub); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--grey); }
.stat-card p { font-size: 0.88rem; color: var(--grey); line-height: 1.65; margin-top: 10px; }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin-top: 40px; }
.faq-item { border-bottom: 1px solid var(--border); padding: 26px 0; }
.faq-q { font-family: var(--font-sub); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text); margin-bottom: 10px; }
.faq-a { font-size: 0.95rem; color: var(--grey); line-height: 1.75; max-width: 680px; }

/* ── CHECKLIST (detail pages) ── */
.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.detail-list { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.detail-list li { padding-left: 34px; position: relative; font-size: 1rem; color: rgba(18, 26, 38, 0.8); }
.detail-list li::before { content: '✓'; position: absolute; left: 0; top: 0; width: 22px; height: 22px; background: var(--accent); color: #fff; font-weight: 700; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.detail-list strong { color: var(--text); font-weight: 600; }

/* ── PROCESS STEPS ── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; counter-reset: step; }
.step { background: var(--panel); border: 1px solid var(--border); padding: 34px 28px; position: relative; box-shadow: 0 2px 12px rgba(10, 27, 48, 0.04); }
.step::before { counter-increment: step; content: '0' counter(step); font-family: var(--font-head); font-size: 2.4rem; color: rgba(156, 122, 30, 0.3); display: block; margin-bottom: 12px; }
.step h3 { font-size: 1.15rem; }
.step p { font-size: 0.9rem; color: var(--grey); line-height: 1.7; }

/* ── CRITERIA TABLE ── */
.crit-wrap { overflow-x: auto; margin-top: 48px; border: 1px solid var(--border); }
.crit-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.crit-table th {
  font-family: var(--font-sub); font-size: 0.74rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; text-align: left;
  background: var(--ink); color: #EBF0F8; padding: 14px 18px;
}
.crit-table td { padding: 14px 18px; font-size: 0.9rem; color: rgba(18, 26, 38, 0.8); border-bottom: 1px solid var(--border); }
.crit-table tr:nth-child(even) td { background: var(--bg-soft); }
.crit-table td.yes { color: var(--accent-deep); font-weight: 600; }
.crit-table td.no { color: rgba(18, 26, 38, 0.35); }

/* ── BADGE DISPLAY CARDS (badges page) ── */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.badge-card { background: var(--panel); border: 1px solid var(--border); padding: 36px 28px; text-align: center; box-shadow: 0 2px 12px rgba(10, 27, 48, 0.04); }
.badge-card img { width: 150px; height: auto; margin: 0 auto 20px; display: block; }
.badge-card h3 { font-size: 1.1rem; }
.badge-card p { font-size: 0.88rem; color: var(--grey); line-height: 1.65; }

/* ── EMBED CODE BLOCK ── */
.embed-block {
  background: var(--ink); color: #C8D6EC;
  font-family: 'Consolas', 'Menlo', monospace; font-size: 0.78rem;
  padding: 18px 20px; margin-top: 16px; overflow-x: auto;
  border-left: 3px solid var(--accent-bright);
  white-space: pre; text-align: left; line-height: 1.6;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .member-grid { grid-template-columns: 1fr 1fr; }
  .badge-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  nav { padding: 16px 24px; }
  nav.scrolled { padding: 12px 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  section { padding: 72px 24px; }
  .page-header { padding: 120px 24px 60px; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .stat-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .member-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: 1fr; }
}
