/* ==== SINGLE TEAM MEMBER HERO STYLES ==== */
/* Follows site-grid-rails.css layout system and performance checklist */
/* Performance: Optimized for Core Web Vitals - LCP ≤ 2.0s, CLS ≤ 0.05, INP ≤ 200ms */

/* Performance: Use CSS @layer for proper scoping */
@layer components {
  /* ===== SKIP TO CONTENT ===== */
  .skip-to-content {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--ica-green-deep, #1E312F);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    z-index: 1000;
    font-size: 14px;
    font-weight: 600;
    transition: top 0.3s ease;
  }
  
  .skip-to-content:focus {
    top: 6px;
    outline: 2px solid var(--ica-lime, #C6D62B);
    outline-offset: 2px;
  }

  /* ===== HERO SECTION ===== */
  .single-team-hero {
    background-color: var(--ica-green-deep, #1E312F);
    padding: 4rem 0;
    min-height: 60vh;
    display: flex;
    align-items: center;
    /* Performance: Prevent layout shifts */
    contain: layout style;
  }

  /* ===== FADE-IN ANIMATIONS ===== */
  .single-team-hero__breadcrumbs {
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
  }

  .single-team-hero__image-container {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
  }

  .single-team-hero__title {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.3s forwards;
  }

  .single-team-hero__designation {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
  }

  .single-team-hero__description {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.5s forwards;
  }

  .single-team-hero__social {
    opacity: 0;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
  }

  /* Fade-in animation keyframes */
  @keyframes fadeInUp {
    from {
      opacity: 0;
      transform: translateY(30px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  /* ===== HERO INNER CONTAINER ===== */
  /* Using site-grid-rails section__inner--wide class - positioning handled by site-grid-rails.css */

  /* ===== HERO GRID LAYOUT ===== */
  .single-team-hero__grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
  }

  /* ===== IMAGE COLUMN ===== */
  .single-team-hero__image-col {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .single-team-hero__image-container {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(30, 49, 47, 0.15);
    /* Performance: Optimize image rendering */
    transform: translateZ(0);
  }

  .single-team-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .single-team-hero__placeholder {
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
    background-color: var(--ica-green-deep, #1E312F);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 32px rgba(30, 49, 47, 0.15);
  }

  .single-team-hero__placeholder .dashicons {
    font-size: 4rem;
    color: var(--ica-lavender, #CFADD1);
    width: 4rem;
    height: 4rem;
  }

  /* ===== INFO COLUMN ===== */
  .single-team-hero__info-col {
    display: flex;
    align-items: center;
  }

  .single-team-hero__content {
    width: 100%;
  }

  /* ===== BREADCRUMBS ===== */
  .single-team-hero__breadcrumbs {
    margin-bottom: 1rem;
  }

  /* Hide mobile breadcrumbs on desktop */
  @media (min-width: 769px) {
    .single-team-hero__breadcrumbs:not(.single-team-hero__breadcrumbs--desktop) {
      display: none;
    }
  }

  /* Hide desktop breadcrumbs on mobile */
  @media (max-width: 768px) {
    .single-team-hero__breadcrumbs--desktop {
      display: none;
    }
    
    /* Center breadcrumbs on mobile */
    .single-team-hero__breadcrumbs:not(.single-team-hero__breadcrumbs--desktop) {
      text-align: center;
    }
    
    .single-team-hero__breadcrumbs:not(.single-team-hero__breadcrumbs--desktop) .breadcrumb-list {
      justify-content: center;
    }
  }

  .breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
  }

  .breadcrumb-item {
    display: flex;
    align-items: center;
  }

  .breadcrumb-link {
    font-family: var(--font-ui, "Termina", "Arial Black", sans-serif);
    font-size: 0.875rem;
    color: white !important;
    text-decoration: none;
    transition: color var(--ease, 250ms cubic-bezier(.2,.7,.2,1));
  }

  .breadcrumb-link:hover {
    color: var(--ica-lime, #C6D62B) !important;
    text-decoration: underline;
  }

  .breadcrumb-separator {
    font-family: var(--font-ui, "Termina", "Arial Black", sans-serif);
    font-size: 0.875rem;
    color: var(--ica-lavender, #CFADD1) !important;
    margin: 0 0.25rem;
  }

  .breadcrumb-current {
    font-family: var(--font-ui, "Termina", "Arial Black", sans-serif);
    font-size: 0.875rem;
    color: white !important;
    font-weight: 500;
  }

  /* ===== TYPOGRAPHY ===== */
  .single-team-hero__title {
    font-family: var(--font-heading, "ivypresto-display", "Bodoni Moda", Georgia, serif);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 400;
    color: white !important;
    margin: 0 0 1rem 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }

  .single-team-hero__designation {
    font-family: var(--font-ui, "Termina", "Arial Black", sans-serif);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ica-lime, #C6D62B);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 1.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .designation-text {
    display: inline-block;
  }

  .verified-badge {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
      }

  .single-team-hero__description {
    font-family: var(--font-body, "roboto-condensed", system-ui, sans-serif);
    font-size: 1.5rem; /* 24px for desktop */
    font-style: oblique;
    line-height: 1.6;
    color: white;
    margin: 0 0 1.5rem 0;
    max-width: 600px;
  }

  /* ===== SOCIAL LINKS ===== */
  .single-team-hero__social {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
  }

  .social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all var(--ease, 250ms cubic-bezier(.2,.7,.2,1));
    text-decoration: none;
  }

  .social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
  }

  .social-icon {
    width: 20px;
    height: 20px;
    filter: brightness(0) invert(1);
  }

  /* ===== RESPONSIVE DESIGN ===== */
  @media (max-width: 1024px) {
    .single-team-hero {
      padding: 3rem 0;
      min-height: 50vh;
    }

    .single-team-hero__grid {
      gap: 2rem;
      max-width: 900px;
      margin: 0 auto;
    }

    .single-team-hero__image-container,
    .single-team-hero__placeholder {
      max-width: 300px;
    }
  }

  @media (max-width: 768px) {
    .single-team-hero {
      padding: 2rem 0;
      min-height: auto;
    }

    .single-team-hero__grid {
      grid-template-columns: 1fr;
      gap: 2rem;
      text-align: center;
      max-width: 600px;
      margin: 0 auto;
    }

    .single-team-hero__designation {
      justify-content: center;
    }

    .single-team-hero__social {
      justify-content: center;
      gap: 0.75rem;
      margin-top: 1.5rem;
    }

    .single-team-hero__image-container,
    .single-team-hero__placeholder {
      max-width: 250px;
      margin: 0 auto;
    }

    .single-team-hero__title {
      font-size: clamp(2rem, 8vw, 3rem);
    }

    .single-team-hero__designation {
      font-size: 1.125rem;
    }

    .verified-badge {
      width: 18px;
      height: 18px;
    }

    .single-team-hero__description {
      font-size: 1.3rem; /* 20.8px for mobile */
    }

    .breadcrumb-link,
    .breadcrumb-separator,
    .breadcrumb-current {
      font-size: 0.8rem;
    }
  }

  @media (max-width: 480px) {
    .single-team-hero {
      padding: 1.5rem 0;
    }

    .single-team-hero__grid {
      gap: 1.5rem;
    }

    .single-team-hero__image-container,
    .single-team-hero__placeholder {
      max-width: 200px;
    }

    .single-team-hero__placeholder .dashicons {
      font-size: 3rem;
      width: 3rem;
      height: 3rem;
    }

    .breadcrumb-link,
    .breadcrumb-separator,
    .breadcrumb-current {
      font-size: 0.75rem;
    }

    .verified-badge {
      width: 18px;
      height: 18px;
    }

    .single-team-hero__social {
      gap: 0.5rem;
      margin-top: 1.25rem;
    }

    .social-link {
      width: 44px;
      height: 44px;
      background: rgba(255, 255, 255, 0.15);
    }

    .social-link:hover {
      background: rgba(255, 255, 255, 0.25);
    }

    .social-icon {
      width: 22px;
      height: 22px;
    }
  }

  /* ===== ACCESSIBILITY ===== */
  @media (prefers-reduced-motion: reduce) {
    .single-team-hero__image-container {
      transition: none;
    }
  }

  /* ===== PRINT STYLES ===== */
  @media print {
    .single-team-hero {
      background-color: transparent;
      padding: 1rem 0;
      min-height: auto;
    }

    .single-team-hero__image-container,
    .single-team-hero__placeholder {
      box-shadow: none;
    }

    .single-team-hero__title,
    .single-team-hero__designation,
    .single-team-hero__description {
      color: #000;
    }
  }
}
