/* Team Page Styles */

:root {
    --isuzu-red: #E4002B;
    --isuzu-dark: #1a1a1a;
    --isuzu-black: #000000;
    --isuzu-gray: #666666;
    --isuzu-light-gray: #f8f8f8;
    --isuzu-white: #ffffff;
    --border-color: #e5e5e5;
    --font-primary: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    color: var(--isuzu-dark);
    line-height: 1.6;
    background: var(--isuzu-white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Page Hero */
.team-overlay {
    inset: 0;
    position: absolute;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.3) 50%,
        rgba(0, 0, 0, 0.1) 100%
    );
    width: 100%;
    height: 100%;
    border-radius: 1em;
}

.page-hero {
    margin: 7em 1em 0 1em;
    padding: 10rem 0 10rem;
    text-align: center;
    background: var(--isuzu-light-gray);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    position: relative;
    border-radius: 1em;
}

.page-hero .container {
    background-color: #00000050;
    width: fit-content;
    padding: 1.5em 3em;
    border-radius: 8px;
    backdrop-filter: blur(6px);
    position: relative;
    z-index: 2;
    margin: 0 auto;
}

.page-hero h1 {
    font-family: var(--font-secondary);
    font-size: 3.5rem;
    font-weight: 500;
    color: var(--isuzu-red);
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.25rem;
    color: var(--isuzu-white);
}

/* Team Introduction */
.team-intro {
    padding: 5rem 0;
    background: var(--isuzu-white);
}

.intro-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--isuzu-red);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.intro-content h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--isuzu-black);
    margin-bottom: 1.5rem;
}

.intro-content p {
    font-size: 1.125rem;
    color: var(--isuzu-gray);
    line-height: 1.8;
}

/* Team Section */
.team-section {
    padding: 4rem 0;
    background: var(--isuzu-light-gray);
}

.team-section:nth-child(odd) {
    background: var(--isuzu-white);
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--isuzu-black);
    margin-bottom: 0.75rem;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--isuzu-gray);
}

/* Team Grid */
.team-grid {
    display: grid;
    gap: 2.5rem;
}

.leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    max-width: 900px;
    margin: 0 auto;
}

.staff-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.team-grid {
  display: grid;
  gap: 2rem;
}

.leadership-grid {
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  max-width: 900px;
  margin: 0 auto;
}

.staff-grid {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* ================================================
   FLIP CARD
   ================================================ */
.team-card {
  perspective: 1000px;
  height: 520px;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.team-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.card-front,
.card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 12px;
    overflow: hidden;
}

/* ── Card Front ──────────────────────────────── */
.card-front {
  background: var(--white);
  border: 1px solid var(--gray-200);
  transition: all var(--transition-base);
}

/* .card-front::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--isuzu-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-base);
  z-index: 1;
} */

.team-card:not(.flipped):hover .card-front {
  /* transform: translateY(-8px); */
  box-shadow: var(--shadow-lg);
  border-color: var(--isuzu-red);
}

.team-card:not(.flipped):hover .card-front::before {
  transform: scaleX(1);
}

/* ── Member Photo ────────────────────────────── */
.member-photo {
  width: fit-content;
  height: 280px;
  overflow: hidden;
  border-radius: 8px;
  margin: 1.25rem auto 0;
}

.member-photo-none {
  /* width: 100%; */
  height: 280px;
  background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-300);
  border-radius: 8px;
  margin: 1.25rem 1.25rem 0 1.25rem
}

.member-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.team-card:not(.flipped):hover .member-photo img {
  transform: scale(1.04);
}

/* ── Member Info ─────────────────────────────── */
.member-info {
  padding: 1.5rem 1.75rem 1.75rem;
}

.member-name {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--isuzu-black);
  margin-bottom: 4px;
}

.member-title {
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--isuzu-red);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.member-bio-short {
  font-size: 0.9rem;
  color: var(--isuzu-gray);
  line-height: 1.7;
}

/* ── Flip Button ─────────────────────────────── */
.flip-btn {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  width: 38px;
  height: 38px;
  background: var(--isuzu-dark);
  color: var(--white);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-base);
}

.flip-btn:hover {
  background: var(--isuzu-gray);
  transform: scale(1.08);
}

/* ── Card Back ───────────────────────────────── */
.card-back {
  background: var(--white);
  border: 2px solid var(--isuzu-red);
  transform: rotateY(180deg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
}

.back-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--isuzu-red);
  margin-bottom: 1.25rem;
}

.back-header h3 {
  font-family: var(--font-primary);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--isuzu-black);
  margin-bottom: 4px;
}

.back-header p {
  font-family: var(--font-primary);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--isuzu-gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.back-content {
  flex: 1;
  overflow-y: auto;
}

.back-content p {
  font-size: 0.9375rem;
  color: var(--isuzu-dark);
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

.back-content p:last-child { margin-bottom: 0; }

/* ── Flip Back Button ────────────────────────── */
.flip-back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--gray-50);
  color: var(--isuzu-black);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.flip-back-btn:hover {
  background: var(--gray-100);
  border-color: var(--gray-300);
}

/* ================================================
   TECHNICAL TEAM SHOWCASE
   ================================================ */
.technical-team-showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.team-photo {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.team-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.team-description h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  color: var(--isuzu-black);
  margin-bottom: 1rem;
}

.team-description > p {
  font-size: 0.9375rem;
  color: var(--isuzu-gray);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}

.tech-skills {
  list-style: none;
  margin-bottom: 1.5rem;
}

.tech-skills li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--isuzu-black);
  border-bottom: 1px solid var(--gray-100);
}

.tech-skills li:last-child { border-bottom: none; }

.tech-skills li .fi {
  color: var(--isuzu-red);
  flex-shrink: 0;
}

.team-commitment {
  font-size: 0.9375rem;
  color: var(--isuzu-gray);
  line-height: 1.75;
  padding: 1.25rem 1.5rem;
  background: var(--isuzu-gold-pale);
  border-left: 4px solid var(--isuzu-gold);
  border-radius: 4px;
}

/* CTA Section */
.team-cta {
    padding: 6rem 0;
    background: var(--isuzu-black);
    text-align: center;
}

.team-cta h2 {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--isuzu-white);
    margin-bottom: 1rem;
}

.team-cta p {
    font-size: 1.125rem;
    color: #cccccc;
    margin-bottom: 2.5rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-family: var(--font-secondary);
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.cta-btn.primary {
    background: var(--isuzu-red);
    color: var(--isuzu-white);
}

.cta-btn.primary:hover {
    background: #c00024;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(228, 0, 43, 0.4);
}

.cta-btn.outline {
    background: transparent;
    color: var(--isuzu-white);
    border-color: var(--isuzu-white);
}

.cta-btn.outline:hover {
    background: var(--isuzu-white);
    color: var(--isuzu-black);
}

/* Responsive */
@media (max-width: 1024px) {
    .leadership-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }

    .staff-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    .technical-team-showcase {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }

    .page-hero {
        padding: 6rem 8px 6rem;
    }

    .page-hero .container {
        padding: 1.25em 2em;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .page-hero p {
        font-size: 1.125rem;
    }

    .intro-content h2,
    .section-header h2,
    .team-description h3 {
        font-size: 2rem;
    }

    .team-section {
        padding: 3rem 0;
    }

    .staff-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .team-card {
        height: 500px;
    }

    .member-photo {
        height: 240px;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 600px) {
    /* .page-hero {
        margin: 5.5em 0.5em 0 0.5em;
        padding: 4rem 0 4rem;
    } */

    /* .page-hero .container {
        padding: 1em 1.5em;
    } */

    .page-hero h1 {
        font-size: 2rem;
    }

    .page-hero p {
        font-size: 1rem;
    }

    .intro-content h2,
    .section-header h2,
    .team-description h3,
    .team-cta h2 {
        font-size: 1.75rem;
    }

    .team-card {
        height: 480px;
    }

    .member-photo {
        height: 220px;
    }

    .member-info {
        padding: 1.5rem;
    }

    .member-name {
        font-size: 1.25rem;
    }

    .card-back {
        padding: 1.5rem;
    }
}
