/* =========================================================
   Quantum Team Page
   ========================================================= */

:root {
  --forest: #0e4b3d;
  --forest-2: #0b3f34;
  --gold: #c8a24a;
  --sage: #d9e6de;
  --sage-2: #edf4ef;
  --cream: #f8f6f0;
  --cream-2: #fffdf7;
  --white: #ffffff;
  --charcoal: #333333;
  --muted: #5f6f68;
  --teal: #6fafa6;
  --max-width: 1180px;
  --radius-lg: 24px;
  --radius-xl: 36px;
  --radius-pill: 999px;
  --shadow-soft: 0 18px 40px rgba(14, 75, 61, 0.1);
  --shadow-strong: 0 26px 64px rgba(14, 75, 61, 0.16);
  --transition: 220ms ease;
}

.quantum-team-page {
  background: var(--cream);
  color: var(--charcoal);
  overflow: hidden;
}

.quantum-team-page .eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 0;
  background: transparent;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}

/* Hero */
.team-hero {
  position: relative;
  padding: 165px 32px 105px;
  background:
    radial-gradient(circle at top left, rgba(200, 162, 74, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(14, 75, 61, 0.98), rgba(11, 63, 52, 0.92));
  color: var(--white);
}

.team-hero::after {
  content: "";
  position: absolute;
  inset: auto -8% -42% auto;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(217, 230, 222, 0.08);
  pointer-events: none;
}

.team-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.team-hero h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(58px, 9vw, 104px);
  font-weight: 700;
  line-height: 0.93;
  letter-spacing: -0.055em;
}

.team-hero h1 span {
  display: block;
  color: var(--gold);
}

.team-hero-lead {
  max-width: 760px;
  margin: 28px auto 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(18px, 2.1vw, 23px);
  line-height: 1.58;
  font-weight: 600;
}

.team-hero-actions {
  margin-top: 38px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.team-hero-actions .btn-ghost {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

/* Care Values */
.team-values {
  padding: 0 32px;
  background: linear-gradient(180deg, var(--forest-2) 0%, var(--cream) 100%);
}

.team-values-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  transform: translateY(-42px);
}

.team-value-card {
  padding: 34px 30px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(14, 75, 61, 0.08);
  box-shadow: var(--shadow-soft);
}

.team-value-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.team-value-card h2 {
  margin: 0 0 12px;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--forest);
  font-size: 34px;
  line-height: 1.02;
}

.team-value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 600;
}

/* Team Sections */
.team-section {
  padding: 82px 32px 102px;
}

.team-section-light {
  background: var(--cream);
}

.team-section-sage {
  background: var(--sage-2);
}

.team-section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.team-section-head {
  max-width: 860px;
  margin: 0 auto 52px;
  text-align: center;
}

.team-section-head h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--forest);
  font-size: clamp(46px, 6vw, 74px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.team-section-head p {
  max-width: 720px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.team-grid-featured {
  grid-template-columns: 1.35fr 0.85fr;
  align-items: stretch;
}

.team-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
}

.team-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(14, 75, 61, 0.08);
  box-shadow: var(--shadow-soft);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 75, 61, 0.15);
  box-shadow: var(--shadow-strong);
}

.team-card-large {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
}

.team-photo-frame {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(14, 75, 61, 0.9), rgba(111, 175, 166, 0.55)),
    var(--sage);
}

.team-card-large .team-photo-frame {
  min-height: 100%;
}

.team-photo-frame::before {
  content: "Photo";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.team-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  object-position: center top;
}

.team-card-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px;
}

.team-role-tag {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 1.35;
  text-transform: uppercase;
}

.team-card h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--forest);
  font-size: clamp(32px, 3vw, 46px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.team-credentials {
  margin: 10px 0 18px;
  color: var(--forest-2);
  font-size: 14px;
  font-weight: 900;
}

.team-card-content > p:not(.team-role-tag):not(.team-credentials) {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.68;
  font-weight: 600;
}

.team-focus-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: auto 0 0;
  padding: 0;
}

.team-focus-list li {
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  background: var(--sage-2);
  color: var(--forest);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 1.1;
}

.team-card-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 26px;
  color: var(--forest);
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
}

.team-card-link:hover {
  color: var(--gold);
}

/* CTA */
.team-cta-section {
  padding: 92px 32px;
  background: var(--cream);
}

.team-cta-card {
  max-width: 980px;
  margin: 0 auto;
  padding: 58px 62px;
  border-radius: var(--radius-xl);
  background: var(--forest);
  color: var(--white);
  text-align: center;
  box-shadow: var(--shadow-strong);
}

.team-cta-card h2 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.team-cta-card p {
  max-width: 680px;
  margin: 22px auto 32px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 600;
}

/* Floating start button */
.floating-start-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 98;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 20px;
  border-radius: var(--radius-pill);
  background: var(--teal);
  color: var(--white);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(14, 75, 61, 0.24);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px);
  pointer-events: none;
  transition:
    opacity 220ms ease,
    visibility 220ms ease,
    transform 220ms ease,
    background 220ms ease;
}

.floating-start-button.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-start-button:hover {
  background: var(--forest);
  color: var(--white);
}

/* =========================================================
   Shared Footer Styling
   ========================================================= */
.footer {
  padding: 64px 32px 30px;
  background: var(--forest-2, #0b3f34);
  color: var(--white, #ffffff);
}

.footer-inner {
  max-width: var(--max-width, 1180px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 1.8fr;
  gap: 48px;
  align-items: start;
}

.footer-brand .brand-text strong {
  color: var(--white, #ffffff);
}

.footer-brand .brand-text em {
  color: rgba(255, 255, 255, 0.68);
}

.footer-brand p {
  margin-top: 16px;
  max-width: 420px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.65;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 34px;
}

.footer-cols h4 {
  margin-bottom: 16px;
  color: var(--gold, #c8a24a);
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-cols a {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 220ms ease,
    transform 220ms ease;
}

.footer-cols a:hover {
  color: var(--white, #ffffff);
  transform: translateX(3px);
}

.footer-bottom {
  max-width: var(--max-width, 1180px);
  margin: 42px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-bottom p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1100px) {
  .team-grid,
  .team-grid-featured,
  .team-grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-card-large {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .team-values-inner {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

@media (max-width: 720px) {
  .team-hero {
    padding: 138px 22px 92px;
  }

  .team-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .team-values,
  .team-section,
  .team-cta-section {
    padding-left: 20px;
    padding-right: 20px;
  }

  .team-grid,
  .team-grid-featured,
  .team-grid-two {
    grid-template-columns: 1fr;
  }

  .team-section {
    padding-top: 70px;
    padding-bottom: 78px;
  }

  .team-card-content {
    padding: 26px;
  }

  .team-cta-card {
    padding: 44px 28px;
  }

  .floating-start-button {
    left: 20px;
    right: 20px;
    bottom: 18px;
    width: auto;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .footer {
    padding: 54px 22px 26px;
  }

  .footer-bottom {
    flex-direction: column;
  }

  .footer-brand .brand-text em {
    display: none;
  }
}

@media (max-width: 420px) {
  .team-photo-frame,
  .team-photo {
    min-height: 270px;
  }

  .floating-start-button {
    left: 14px;
    right: 14px;
    bottom: 14px;
  }
}

/* =========================================================
Footer Social Links
========================================================= */

.footer-social {
display: flex;
align-items: center;
gap: 12px;
margin-top: 22px;
}

.footer-social a {
width: 38px;
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;

border-radius: 50%;
background: rgba(255, 255, 255, 0.10);
border: 1px solid rgba(255, 255, 255, 0.18);
color: var(--white, #ffffff);

font-size: 18px;
font-weight: 900;
line-height: 1;
text-decoration: none;

transition:
background 220ms ease,
color 220ms ease,
transform 220ms ease,
border-color 220ms ease;
}

.footer-social a:hover {
background: var(--gold, #c8a24a);
border-color: var(--gold, #c8a24a);
color: var(--forest, #0e4b3d);
transform: translateY(-3px);
}

.footer-social a:focus-visible {
outline: 3px solid rgba(200, 162, 74, 0.45);
outline-offset: 4px;
}

@media (max-width: 640px) {
.footer-social {
margin-top: 18px;
}
}

/* =========================================================
Footer Social Links
========================================================= */

.footer-social {
display: flex;
align-items: center;
gap: 14px;
margin-top: 24px;
}

.footer-social a {
width: 34px;
height: 34px;

display: inline-flex;
align-items: center;
justify-content: center;

border-radius: 50%;
background: rgba(255, 255, 255, 0.92);
color: var(--forest, #0e4b3d);
text-decoration: none;

box-shadow: 0 10px 22px rgba(0, 0, 0, 0.14);

transition:
background 220ms ease,
transform 220ms ease,
box-shadow 220ms ease;
}

.footer-social a:hover {
background: var(--gold, #c8a24a);
transform: translateY(-3px);
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.18);
}

.footer-social img {
width: 17px;
height: 17px;
display: block;
object-fit: contain;
opacity: 0.78;
}

.footer-social a:hover img {
opacity: 1;
}

@media (max-width: 640px) {
.footer-social {
margin-top: 20px;
}
}

/* =========================================================
   Staff Roster Revision
   ========================================================= */

.team-grid-staff {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.team-grid-staff .team-card {
  min-height: 100%;
}

@media (max-width: 1100px) {
  .team-grid-staff {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .team-grid-staff {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Team Group Headings & Flexible Staff Layout
   ========================================================= */

.team-group {
  margin-top: 72px;
}

.team-group:first-of-type {
  margin-top: 0;
}

.team-group-head {
  max-width: 820px;
  margin: 0 auto 30px;
  text-align: center;
}

.team-group-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  line-height: 1.3;
  text-transform: uppercase;
}

.team-group-head h3 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--forest);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.team-grid-compact {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.team-grid-single {
  grid-template-columns: minmax(0, 520px);
  justify-content: center;
}

@media (max-width: 720px) {
  .team-group {
    margin-top: 58px;
  }

  .team-grid-compact,
  .team-grid-single {
    grid-template-columns: 1fr;
    max-width: none;
  }
}

/* Temporary team profile photo placeholder */
.team-photo-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;

  text-align: center;
  background: rgba(14, 75, 61, 0.08);
}

.team-photo-placeholder span {
  font-family: "Cormorant Garamond", serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
}

.team-photo-placeholder small {
  font-family: "Source Sans 3", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
}
