/* =========================================================================
 * team.css — "Our Team" archive (archive-team_member.php).
 * Source of truth: gibson-team-toggle.html. Unique selectors only.
 * Shared chrome (nav, footer, global-map, popup, buttons, tokens) lives in
 * global.css — never redefined here.
 * ========================================================================= */

/* light-mode surfaces flip to dark chalk via tokens above */
[data-theme="dark"] .team-grid-section,
[data-theme="dark"] .lead-section {
  background: var(--chalk);
}

/* ═══════════════ PAGE HEADER ═══════════════ */
body.separate-containers .page-header {
  /* No min-height — it left an empty navy band below the short hero content
     (the "blue bar"). Padding sizes the hero so it hugs its content. Matches
     the contact-template fix (Austin 2026-06-05); applied to all interior
     heroes 2026-06-18. */
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  background: var(--deep-purple);
  position: relative; overflow: hidden;
  padding: 150px 48px 64px;
}
/* Sun-aware Orlando skyline backdrop — day in light mode, night in dark mode (same as the bio hero) */
.page-header-sky {
  position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center 30%;
  background-image: url("/wp-content/uploads/2026/06/orlando-skyline-during-daytime.webp");
}
[data-theme="dark"] .page-header-sky { background-image: url("/wp-content/uploads/2026/06/orlando-skyline-during-nightttime.webp"); }
.page-header-bg {
  position: absolute; inset: 0; z-index: 1;
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, rgba(11,22,40,0.92) 0%, rgba(11,22,40,0.66) 58%, rgba(11,22,40,0.5) 100%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(244,100,33,0.06) 0%, transparent 70%),
    linear-gradient(0deg, rgba(11,22,40,0.6) 0%, transparent 42%);
}
[data-theme="dark"] .page-header-bg {
  background:
    radial-gradient(ellipse 75% 65% at 50% 45%, rgba(8,16,31,0.93) 0%, rgba(8,16,31,0.72) 58%, rgba(8,16,31,0.55) 100%),
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(244,100,33,0.06) 0%, transparent 70%),
    linear-gradient(0deg, rgba(8,16,31,0.6) 0%, transparent 42%);
}
.page-header-grain {
  position: absolute; inset: 0; z-index: 2; opacity: 0.035; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.page-header-content { position: relative; z-index: 3; max-width: 880px; }
.page-header .eyebrow { justify-content: center; margin-bottom: 22px; color: #fff; }
.page-header h1 {
  font-family: var(--display);
  font-size: clamp(3.75rem, 8vw, 6rem);
  font-weight: 700; line-height: 1.02; color: #fff;
  margin-bottom: 24px;
}
.page-header-sub {
  font-family: var(--body);
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  font-weight: 400; font-style: normal;
  color: var(--smoke); line-height: 1.6;
  max-width: 640px; margin: 0 auto;
}
/* Hero CTAs */
.ph-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.ph-btn { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--body); font-size: 12px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; padding: 17px 30px; transition: transform .3s var(--ease), background .3s, box-shadow .3s, border-color .3s, color .3s; }
.ph-btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.ph-btn-primary { background: var(--fire); color: #fff; }
.ph-btn-primary:hover { background: var(--fire-deep); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(244,100,33,0.35); }
.ph-btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.28); }
.ph-btn-ghost:hover { border-color: var(--fire); color: var(--fire); transform: translateY(-2px); }

/* ═══════════════ PROOF BAR (award badges — shared with the homepage) ═══════════════ */
.proof-bar { background:#fff; border-top:1px solid rgba(0,0,0,0.04); border-bottom:1px solid rgba(0,0,0,0.04); padding:36px 0; position:relative; z-index:4; }
.proof-inner { display:flex; align-items:center; justify-content:center; gap:56px; flex-wrap:wrap; padding:0 32px; }
.proof-badge { display:inline-flex; align-items:center; justify-content:center; }
.proof-badge img { max-height:80px; max-width:150px; width:auto; height:auto; display:block; opacity:0.92; transition:opacity .3s; }
.proof-badge:hover img { opacity:1; }
[data-theme="dark"] .proof-bar { background:#fff; border-color:rgba(0,0,0,0.04); }
@media (max-width: 768px) {
  .page-header-sky { display:none; }
  .page-header-bg { -webkit-backdrop-filter:none; backdrop-filter:none; }
  .ph-ctas .ph-btn { flex:1; justify-content:center; }
  .proof-inner { gap:32px; padding:0 20px; }
  .proof-badge img { max-height:60px; max-width:110px; }
}

/* ═══════════════ LEAD ATTORNEY ═══════════════ */
.lead-section {
  background: var(--chalk-warm);
  padding: 120px 0;
  position: relative; overflow: hidden;
}
.lead-section::before {
  content: ''; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='40' cy='40' r='0.6' fill='%23000' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.lead {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 5fr 6fr;
  gap: 56px; align-items: center;
  position: relative;
}
.lead-photo { position: relative; overflow: hidden; }
.lead-photo-frame {
  aspect-ratio: 3 / 4; overflow: hidden;
  position: relative; border: 1px solid var(--border-soft);
  background: var(--parchment);
}
.lead-photo-frame svg { width: 100%; height: 100%; display: block; }
.lead-photo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }
.lead-accent {
  width: 3px; height: 80px; background: var(--fire);
  position: absolute; left: -20px; top: 50%; transform: translateY(-50%);
}
.lead-name {
  font-family: var(--display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700; color: var(--ink); line-height: 1.05;
}
.lead-role {
  font-size: 11px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--fire); margin-top: 14px;
}
.lead-story {
  font-size: 1rem; color: var(--body-text); line-height: 1.85;
  margin-top: 24px; max-width: 480px;
}
.lead-story p + p { margin-top: 14px; }
.lead-pull {
  font-family: var(--display);
  font-size: 1.15rem; font-weight: 500; font-style: italic;
  color: var(--ink); line-height: 1.5;
  padding-left: 20px; border-left: 3px solid var(--fire);
  margin-top: 28px; max-width: 440px;
}
.lead-pull strong { color: var(--fire); font-weight: 700; font-style: normal; }
.lead-nums { display: flex; gap: 0; margin-top: 36px; }
.lead-num {
  padding-right: 28px; margin-right: 28px;
  border-right: 1px solid var(--border-soft);
}
.lead-num:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.lead-num-val {
  font-family: var(--display); font-size: 2rem;
  font-weight: 700; color: var(--fire); line-height: 1;
}
.lead-num-lbl {
  font-size: 9px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--faint-text); margin-top: 5px;
}
.lead-profile-link {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--fire); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; margin-top: 32px;
  transition: gap 0.3s var(--ease), color 0.3s;
}
.lead-profile-link:hover { gap: 14px; color: var(--fire-deep); }

/* ═══════════════ TEAM SECTION HEADER ═══════════════ */
.team-header {
  max-width: 1200px; margin: 0 auto;
  padding: 0 48px 72px;
}
.team-label {
  font-family: var(--body);
  font-size: 14px; font-weight: 600; letter-spacing: 4px;
  text-transform: uppercase; color: var(--fire);
  display: inline-block;
  margin-bottom: 18px;
}
.team-intro-headline {
  font-family: var(--display);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.3px;
  margin: 0 0 22px;
  max-width: 760px;
}
.team-intro-headline em { font-style: italic; font-weight: 400; color: var(--fire); }
.team-intro-prose {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--body-text);
  line-height: 1.75;
  max-width: 720px;
}
.team-intro-prose p { margin: 0 0 14px; }
.team-intro-prose p:last-child { margin-bottom: 0; }
.team-intro-prose strong { color: var(--ink); font-weight: 600; }

/* ═══════════════ TEAM GRID ═══════════════ */
.team-grid-section {
  background: var(--chalk);
  padding: 84px 0 120px;
  position: relative;
}
.team-grid {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.person {
  text-decoration: none; color: inherit;
  display: block;
  transition: transform 0.4s var(--ease);
}
.person:hover { transform: translateY(-4px); }
.person-photo {
  aspect-ratio: 4 / 5; overflow: hidden;
  margin-bottom: 18px;
  position: relative; background: var(--parchment);
}
.person-photo svg { width: 100%; height: 100%; display: block; }
.person-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top center; }
/* Permanent fire bottom bar (matches the bio page's rest-of-team cards) */
.person-photo::after {
  content: ''; position: absolute;
  bottom: 0; left: 0; right: 0; height: 3px;
  background: var(--fire); z-index: 2;
}
.person-name {
  font-family: var(--display);
  font-size: 1.45rem; font-weight: 700;
  color: var(--ink); line-height: 1.2;
}
.person-role {
  font-family: var(--body);
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--fire); margin-top: 8px;
  line-height: 1.4;
}
.person-line {
  font-size: 0.88rem; color: var(--softer-text); line-height: 1.65; margin-top: 12px;
}
/* "View Profile" affordance via CSS — appears on hover, no per-card markup */
.person::after {
  content: 'View Profile \2192';
  display: inline-block; margin-top: 14px;
  font-family: var(--body); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted-text);
  transition: color 0.3s;
}
.person:hover::after { color: var(--fire); }

/* ═══════════════ JOIN ═══════════════ */
.join {
  background: var(--navy); padding: 100px 0;
  text-align: center; position: relative; overflow: hidden;
}
.join::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(0,180,216,0.04) 0%, transparent 70%);
}
.join-inner {
  position: relative; z-index: 1;
  max-width: 560px; margin: 0 auto; padding: 0 48px;
}
.join h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; color: #fff; line-height: 1.08;
  margin-bottom: 16px;
}
.join p {
  font-size: 1rem; color: var(--smoke); line-height: 1.8;
  margin-bottom: 36px;
}
.btn-ghost-teal {
  display: inline-block; color: var(--fire); text-decoration: none;
  font-size: 12px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; padding: 14px 36px;
  border: 1px solid rgba(244,100,33,0.35);
  transition: background 0.3s, border-color 0.3s, color 0.3s, transform 0.3s;
}
.btn-ghost-teal:hover {
  background: rgba(244,100,33,0.1);
  border-color: var(--fire); transform: translateY(-2px);
}

/* ═══════════════ BOTTOM CTA ═══════════════ */
/* Source HTML reused .cta / .cta-btn here, but global.css already owns a
 * fire-gradient .cta-btn. To preserve the source's NAVY button exactly without
 * mutating global chrome, the navy variant is scoped as .cta-btn-navy.
 * The shared .cta band (.cta, .cta::before, .cta-inner, .cta h2, .cta p) lives
 * in global.css — never redefined here. */
.cta-btn-navy {
  display: inline-block; background: var(--navy); color: #fff; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: 3px; text-transform: uppercase;
  padding: 18px 48px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.cta-btn-navy:hover { transform: translateY(-3px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }

/* ═══════════════ RESPONSIVE (source breakpoints) ═══════════════ */
@media (max-width: 1024px) {
  .lead { grid-template-columns: 1fr 1fr; gap: 40px; padding: 0 36px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; padding: 0 36px; }
  .team-header { padding: 0 36px 48px; }
}
@media (max-width: 768px) {
  body.separate-containers .page-header { padding: 120px 24px 60px; }
  .lead-section { padding: 80px 0; }
  .lead { grid-template-columns: 1fr; gap: 24px; padding: 0 24px; }
  .lead-accent { display: none; }
  .lead-nums { flex-wrap: wrap; gap: 16px; }
  .lead-num { margin-right: 0; padding-right: 0; border-right: none; }
  .team-grid { grid-template-columns: 1fr; gap: 24px; padding: 0 24px; }
  .team-header { padding: 0 24px 36px; }
  .team-grid-section { padding: 0 0 80px; }
  .join { padding: 80px 0; }
  .join-inner { padding: 0 24px; }
  .cta { padding: 80px 0; }
}
