/* --- Google Fonts Configuration --- */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@700&family=Open+Sans:wght@400;600&family=Oswald:wght@600&display=swap');

/* --- Theme Variables --- */
:root {
    --gi-red: #ff0000;
    --gi-red-dark: #d60000;
    --gi-dark: #1a1a1a;
    --gi-gray: #4d4d4d;
    --gi-light-gray: #f5f6f7;
    --gi-border: #e8eae9;
    
    --font-heading: 'Open Sans', monospace;
    --font-body: 'Open Sans', sans-serif;
    --font-btn: 'Open Sans', sans-serif;
}

/* --- Layout Containers --- */


/* --- Typographical Framework --- */
.gi-team-hero h1,
.gi-direction-section h2,
.gi-collectif-section h2,
.gi-operational-team h2,
.gi-cta-banner h2 {
    font-family: var(--font-heading);
}

.gi-team-hero p,
.gi-direction-section p,
.gi-bio-meta h3,
.gi-collectif-section p,
.gi-cta-floating-card h3 {
    font-family: var(--font-body);
}

.gi-bio-role,
.gi-operational-team h3,
.gi-card-title-box h4,
.gi-card-dept,
.gi-contact-link,
.gi-pillar-label {
    font-family: var(--font-btn);
}

/* --- Core Buttons Utility --- */
.gi-btn {
    display: inline-block;
    font-family: var(--font-btn);
    text-transform: uppercase;
    text-decoration: none;
    padding: 12px 28px;
    border-radius: 25px;
    font-size: 14px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.gi-btn-primary {
    background-color: var(--gi-red);
    color: #ffffff;
}

.gi-btn-primary:hover {
    background-color: var(--gi-red-dark);
}

.gi-btn-outline {
    background-color: transparent;
    border-color: var(--gi-dark);
    color: var(--gi-dark);
}

.gi-btn-outline:hover {
    background-color: var(--gi-dark);
    color: #ffffff;
}

/* --- 1. Hero Block & Angled Geometric Overlay --- */
.gi-team-hero {
    background-color: #ffffff;
    overflow: visible;
    padding: 40px 0 0 0;
}

.gi-hero-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;  /* ← was 1.1fr 1fr, make them equal */
    align-items: end;                /* ← image sits at bottom */
    gap: 40px;
}

.gi-badge-red {
    color: var(--gi-red);
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 2.1rem;
    letter-spacing: 0.5px;
}

.gi-team-hero h1 {
    font-size: 3rem;
    color: var(--gi-dark);
    margin: 5px 0 20px 0;
}

.gi-team-hero p {
    color: var(--gi-gray);
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 35px;
}

/* Horizontal Pillar Floating Badging Container */
.gi-pillars-pill {
    background-color: #ededed;
    border-radius: 30px;
  padding-top: 15px;
padding-right: 45px;
padding-bottom: 15px;
padding-left: 15px;
    display: inline-flex;
    gap: 5px;
    align-items: start;
}

.gi-pillar-icon {
    color: var(--gi-red);
    font-weight: bold;
}

.gi-pillar-label {
    text-transform: uppercase;
    font-size: 13px;
    color: var(--gi-dark);
    letter-spacing: 0.5px;
}

.gi-team-hero {
    background-color: #ffffff;
    overflow: hidden;        /* Keep hidden but control it at section level */
    padding: 40px 0 0 0;
    min-height: 420px;       /* Give the section enough height */
}

.gi-hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: end;        /* Align image to bottom */
    gap: 40px;
    min-height: 420px;       /* Match section height */
}

.gi-hero-graphic {
    width: 100%;
    height: 140%;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.gi-hero-graphic img {
    width: 280%;             /* Full width of column */
    height: auto;
    display: block;
    object-fit: unset;
    max-height: 480px;       /* Cap so it doesn't go too tall */
    object-position: bottom;
}
.gi-direction-section {
    padding: 80px 0;
    background-color: #ffffff;
}

.gi-section-title {
    color: #999999;
    font-size: 28px;
    margin-bottom: 15px;
}

.gi-section-desc {
    color: var(--gi-gray);
    font-size: 14px;
    margin-bottom: 60px;
}

.gi-direction-list {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.gi-bio-row {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 40px;
    align-items: flex-start;
}

/* Rounded Profile Cards Layout */
.gi-bio-card {
    background: #ffffff;
    border: 1px solid var(--gi-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    text-align: center;
    padding-bottom: 20px;
}

.gi-bio-img-wrapper {
    width: 100%;
    height: 180px;
    background-color: #fff;
    overflow: hidden;
}

.gi-bio-img-wrapper img {
    width: 70%;
    height: 100%;
    object-fit: cover;
    margin-top: 0px;
}

.gi-bio-meta {
    padding: 5px 15px 0 15px;
}

.gi-bio-meta h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--gi-dark);
    margin: 0 0 8px 0;
}

.gi-bio-role {
    font-size: 11px;
    color: #999999;
    letter-spacing: 0.5px;
    display: block;
}

/* Bio Copy Text Styles & Highlights */
.gi-bio-text p {
    font-size: 14px;
    color: var(--gi-gray);
    line-height: 1.6;
    margin-bottom: 15px;
}
.gi-bio-text p {
    margin-top: 25px !important;
}
.gi-quote {
    font-family: 'Abhaya Libre ExtraBold', serif !important;
    font-size: 18px;
    font-weight: 900;
    color: var(--gi-red);
    margin: 20px 0 0 0;
    padding: 0;
    line-height: 1.4;
}

/* --- 3. Mid Grid Section: Industrial Group Frame --- */
.gi-collectif-section {
    background-color: var(--gi-light-gray);
    padding: 60px 0;
}

.gi-collectif-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: center;
}

.gi-collectif-content h2 {
    font-size: 2rem;
    color: var(--gi-dark);
    line-height: 1.3;
    margin-bottom: 20px;
}

.gi-text-red {
    color: var(--gi-red);
}

.gi-collectif-content p {
    font-size: 14px;
    color: var(--gi-gray);
    line-height: 1.6;
}

.gi-collectif-image img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* --- 4. Support & Coordination Operational Grid --- */
.gi-operational-team {
    padding: 80px 0;
    background-color: #ffffff;
}

.gi-team-header {
    margin-bottom: 40px;
}

.gi-operational-team h2 {
    color: #999999;
    font-size: 24px;
    margin: 0 0 5px 0;
}

.gi-operational-team h3 {
    color: var(--gi-dark);
    font-size: 16px;
    letter-spacing: 1px;
    margin: 0;
}

/* Cards Flex / Grid Matrix */
.gi-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.gi-team-card {
    background-color: var(--gi-light-gray);
    border-radius: 12px;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-bottom: 4px solid transparent;
}

.gi-card-top {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    margin-bottom: 25px;
}

.gi-card-icon-box {
    padding: 12px;
    border-radius: 8px;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gi-card-title-box h4 {
    font-size: 16px;
    color: var(--gi-dark);
    margin: 0 0 4px 0;
    letter-spacing: 0.5px;
}

.gi-card-dept {
    font-size: 12px;
    color: var(--gi-dark);
    font-weight: 900;
}

/* Color Identity Matrices */
.gi-team-card.color-cyan { border-bottom-color: #00cfc3; }
.gi-team-card.color-cyan .gi-card-icon-box { background-color: #00cfc3; }

.gi-team-card.color-green { border-bottom-color: #03af1b; }
.gi-team-card.color-green .gi-card-icon-box { background-color: #03af1b; }

.gi-team-card.color-blue { border-bottom-color: #0066cc; }
.gi-team-card.color-blue .gi-card-icon-box { background-color: #0066cc; }

/* Contact Lines Inside Components */
.gi-card-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.gi-contact-link {
    text-decoration: none;
    color: var(--gi-gray);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: color 0.2s ease;
}

.gi-contact-link hover {
    color: var(--gi-red);
}

/* --- 5. Universal Action Frame Layer (CTA) --- */
.gi-cta-banner {
    background-color: var(--gi-red);
    padding: 50px 0 0 0;
    text-align: center;
    position: relative;
}

.gi-cta-banner h2 {
    color: #ffffff;
    font-size: 1.6rem;
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.gi-cta-floating-card {
    background: #ffffff;
    border-radius: 12px 12px 0 0;
    padding: 25px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 -5px 25px rgba(0,0,0,0.1);
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
}

.gi-cta-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.gi-cta-icon {
    color: var(--gi-gray);
    display: flex;
    align-items: center;
}

.gi-cta-floating-card h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.gi-cta-actions {
    display: flex;
    gap: 15px;
}

/* --- Media Queries / Adaptive Responsive States --- */
@media (max-width: 992px) {
    .gi-hero-grid {
        grid-template-columns: 1fr;
        padding-bottom: 40px;
    }
    .gi-hero-graphic {
        clip-path: none;
        min-height: 300px;
    }
    .gi-bio-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .gi-bio-card {
        max-width: 320px;
        margin: 0 auto;
    }
    .gi-collectif-grid {
        grid-template-columns: 1fr;
    }
    .gi-cards-grid {
        grid-template-columns: 1fr;
    }
    .gi-cta-floating-card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .gi-cta-left {
        flex-direction: column;
        gap: 10px;
    }
}

@media (max-width: 600px) {
    .gi-pillars-pill {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        box-sizing: border-box;
    }
    .gi-team-hero h1 {
        font-size: 2.2rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — max-width 767px
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

  img, video, iframe {
    max-width: 100% !important;
    height: auto !important;
  }

  /* ── Hero section ── */
  .gi-team-hero {
    min-height: auto !important;
    margin-top: 80px !important;
    padding: 20px 0 0 !important;
    border-radius: 12px !important;
  }

  .gi-hero-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    min-height: auto !important;
    padding-bottom: 20px !important;
    margin-top: 0 !important;
  }

  .gi-hero-graphic {
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
  }

  .gi-hero-graphic img {
    width: 100% !important;
    max-height: 280px !important;
  }

  .gi-badge-red {
    font-size: 1.4rem !important;
  }

  .gi-team-hero p {
    font-size: 13px !important;
    margin-bottom: 20px !important;
  }

  .gi-pillars-pill {
    padding: 10px 15px !important;
    gap: 4px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
  }

  .gi-pillars-pill img {
    height: 50px !important;
    width: auto !important;
  }

  .gi-pillars-pill + .gi-pillars-pill {
    margin-top: 8px !important;
  }

  .gi-pillars-pill .gi-pillar-item li {
    font-size: 12px !important;
  }

  /* ── Direction section ── */
  .gi-direction-section {
    padding: 40px 0 !important;
  }

  .gi-section-title {
    font-size: 20px !important;
  }

  .gi-section-desc {
    font-size: 13px !important;
    margin-bottom: 30px !important;
  }

  .gi-bio-row {
    gap: 20px !important;
  }

  .gi-bio-text p {
    font-size: 13px !important;
    margin-top: 0 !important;
  }

  .gi-quote {
    font-size: 15px !important;
  }

  /* ── Second hero banner ── */
  .gi-hero-text-block[style*="margin-left"] {
    margin-left: 0 !important;
  }

  /* ── Operational team ── */
  .gi-operational-team {
    padding: 40px 0 !important;
  }

  .gi-team-header {
    margin-bottom: 24px !important;
  }

  .gi-operational-team h2 {
    font-size: 18px !important;
  }

  .gi-operational-team h3 {
    font-size: 14px !important;
  }

  .gi-cards-grid {
    gap: 16px !important;
  }

  .gi-team-card {
    padding: 18px !important;
  }

  .gi-card-top {
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  .gi-card-title-box h4 {
    font-size: 14px !important;
  }

  .gi-card-dept {
    font-size: 11px !important;
  }

  .gi-card-icon-box {
    padding: 8px !important;
  }

  .gi-card-icon-box img {
    height: 30px !important;
    width: auto !important;
  }

  .gi-contact-link {
    font-size: 12px !important;
  }

  section {
    overflow-x: hidden;
  }
}

/* ══════════════════════════════════════════════════════════════════════
   RESPONSIVE — max-width 576px
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 576px) {
  .gi-team-hero {
    margin-left: 8px !important;
    margin-right: 8px !important;
  }

  .gi-hero-grid {
    gap: 12px !important;
  }

  .gi-hero-graphic img {
    max-height: 200px !important;
  }

  .gi-badge-red {
    font-size: 1.15rem !important;
  }

  .gi-section-title {
    font-size: 17px !important;
  }

  .gi-direction-list {
    gap: 30px !important;
  }

  .gi-bio-card {
    max-width: 260px !important;
  }

  .gi-bio-img-wrapper {
    height: 140px !important;
  }

  .gi-bio-meta h3 {
    font-size: 15px !important;
  }

  .gi-pillars-pill img {
    height: 40px !important;
  }
}