/**
 * AroundManchester.com - Our Team Page Stylesheet
 * Styles specific to our-team.html
 * 
 * @charset UTF-8
 * @author AroundManchester.com Development Team
 * @version 1.0
 */

@charset "UTF-8";

/* ===== COMPACT HEADER DESCRIPTION ===== */
.site-header__description {
  line-height: 1.3;
  padding: 4px 12px;
  margin: 4px auto 0;
}

.site-header__description > p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.25;
}

/* ===== OUR TEAM PAGE WRAPPER ===== */
.our-team-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
  background: #f5f5f5;
}

/* ===== TEAM HERO ===== */
.team-hero {
  background: linear-gradient(135deg, #4a6bb5, #3a5a95);
  color: #fff;
  padding: 60px 20px;
  text-align: center;
  border-radius: 8px;
  margin-bottom: 40px;
}

.team-hero__title {
  font-size: 2.5rem;
  margin: 0 0 10px;
  font-weight: 700;
}

.team-hero__subtitle {
  font-size: 1.2rem;
  margin: 0;
  opacity: 0.9;
}

/* ===== TEAM SECTION ===== */
.team-section {
  background: #f8f9fa;
  padding: 60px 20px;
}

.team-section__title {
  text-align: center;
  font-size: 2rem;
  color: #333;
  margin: 0 0 40px;
  font-weight: 700;
}

/* ===== FOUNDER CARD ===== */
.founder-card {
  max-width: 800px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: row;
  align-items: stretch;
}

.founder-card--spaced {
  margin-top: 40px;
}

.founder-card__image-container {
  flex: 0 0 280px;
  background: linear-gradient(135deg, #e8e8e8, #d0d0d0);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
}

.founder-card__image-placeholder {
  width: 180px;
  height: 180px;
  background: linear-gradient(135deg, #4a6bb5, #3a5a95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 4rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(74, 107, 181, 0.3);
}

.founder-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.founder-card__content {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.founder-card__role {
  font-size: 0.9rem;
  color: #4a6bb5;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 8px;
}

.founder-card__name {
  font-size: 2rem;
  color: #333;
  margin: 0 0 16px;
  font-weight: 700;
}

.founder-card__name--bold {
  font-family: 'Arial Black', 'Helvetica Bold', Arial, sans-serif;
  font-weight: 900;
}

.founder-card__bio {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin: 0 0 20px;
}

.founder-card__duties {
  font-size: 1rem;
  color: #555;
  line-height: 1.8;
  margin: 0 0 20px;
  padding-left: 20px;
  list-style-type: disc;
}

.founder-card__duties li {
  margin-bottom: 6px;
}

.founder-card__quote {
  font-style: italic;
  color: #666;
  font-size: 1rem;
  border-left: 4px solid #4a6bb5;
  padding-left: 16px;
  margin: 0;
}

/* ===== MORE SECTIONS NOTICE ===== */
.more-sections-notice {
  max-width: 800px;
  margin: 40px auto 0;
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.more-sections-notice__title {
  font-size: 1.3rem;
  color: #333;
  margin: 0 0 10px;
  font-weight: 600;
}

.more-sections-notice__text {
  font-size: 1rem;
  color: #666;
  margin: 0;
}

/* ===== FUTURE TEAM SECTION ===== */
.future-team-section {
  background: linear-gradient(180deg, #e8ecf3 0%, #dce2ed 50%, #d0d8e8 100%);
  padding: 80px 20px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  margin-top: 40px;
}

.future-team-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(74, 107, 181, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.future-team-section__container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* ===== ORG CHART STRUCTURE ===== */
.org-tier {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
}

.org-tier--preview {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 2px dashed #bbb;
}

.org-connector {
  width: 2px;
  height: 20px;
  background: linear-gradient(180deg, #9aa3b3, #bcc5d5);
  box-shadow: 0 0 8px rgba(74, 107, 181, 0.3);
  animation: connectorPulse 3s ease-in-out infinite;
}

@keyframes connectorPulse {
  0%, 100% { opacity: 0.7; box-shadow: 0 0 8px rgba(74, 107, 181, 0.2); }
  50% { opacity: 1; box-shadow: 0 0 12px rgba(74, 107, 181, 0.5); }
}

.org-branch {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.org-branch__line {
  height: 2px;
  background: linear-gradient(90deg, #bbb, #9aa3b3, #bbb);
  flex: 1;
  max-width: 60px;
}

/* ===== SILHOUETTE CARDS ===== */
.silhouette-card {
  width: 80px;
  height: 100px;
  background: linear-gradient(145deg, #e8ecf3, #d0d8e5);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 4px 12px rgba(0, 0, 0, 0.08),
    0 2px 4px rgba(0, 0, 0, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  animation: floatSubtle 4s ease-in-out infinite;
}

.silhouette-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 
    0 8px 20px rgba(74, 107, 181, 0.2),
    0 4px 8px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@keyframes floatSubtle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.silhouette-card--manager {
  width: 100px;
  height: 120px;
  background: linear-gradient(145deg, #c8d0e0, #a8b5cc);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.12),
    0 3px 6px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  animation: floatManager 5s ease-in-out infinite;
}

.silhouette-card--manager:hover {
  transform: translateY(-6px) scale(1.08);
  box-shadow: 
    0 12px 28px rgba(74, 107, 181, 0.25),
    0 6px 12px rgba(0, 0, 0, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

@keyframes floatManager {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.silhouette-card svg {
  width: 50%;
  height: 60%;
  fill: #8a95a8;
  transition: fill 0.3s ease;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.silhouette-card:hover svg {
  fill: #6a7a95;
}

.silhouette-card--manager svg {
  fill: #6a7a95;
}

.silhouette-card--manager:hover svg {
  fill: #4a6080;
}

/* ===== STAFF AND MANAGER GRIDS ===== */
.staff-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
}

.manager-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 100%;
  margin: 0 auto;
  padding: 25px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1));
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.manager-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Animation delays for manager groups */
.manager-group:nth-child(1) .silhouette-card { animation-delay: 0s; }
.manager-group:nth-child(2) .silhouette-card { animation-delay: 0.2s; }
.manager-group:nth-child(3) .silhouette-card { animation-delay: 0.4s; }
.manager-group:nth-child(4) .silhouette-card { animation-delay: 0.6s; }
.manager-group:nth-child(5) .silhouette-card { animation-delay: 0.8s; }
.manager-group:nth-child(6) .silhouette-card { animation-delay: 1s; }
.manager-group:nth-child(7) .silhouette-card { animation-delay: 1.2s; }
.manager-group:nth-child(8) .silhouette-card { animation-delay: 1.4s; }
.manager-group:nth-child(9) .silhouette-card { animation-delay: 1.6s; }
.manager-group:nth-child(10) .silhouette-card { animation-delay: 1.8s; }
.manager-group:nth-child(11) .silhouette-card { animation-delay: 2s; }
.manager-group:nth-child(12) .silhouette-card { animation-delay: 2.2s; }

.manager-group__staff {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 0;
}

.manager-group .org-connector {
  height: 15px;
}

.manager-group .silhouette-card {
  width: 45px;
  height: 58px;
  border-radius: 6px;
}

.manager-group .silhouette-card--manager {
  width: 60px;
  height: 75px;
  border-radius: 8px;
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 768px) {
  .our-team-page {
    padding: 20px 15px;
  }
  
  .team-hero__title {
    font-size: 1.8rem;
  }

  .team-hero__subtitle {
    font-size: 1rem;
  }

  .founder-card {
    flex-direction: column;
  }

  .founder-card__image-container {
    flex: none;
    min-height: 250px;
  }

  .founder-card__image-placeholder {
    width: 140px;
    height: 140px;
    font-size: 3rem;
  }

  .founder-card__content {
    padding: 30px 25px;
  }

  .founder-card__name {
    font-size: 1.6rem;
  }

  .founder-card__bio,
  .founder-card__quote {
    font-size: 0.95rem;
  }

  .team-section {
    padding: 40px 15px;
  }

  .team-section__title {
    font-size: 1.6rem;
    margin-bottom: 30px;
  }
  
  .future-team-section {
    padding: 50px 15px;
  }
  
  .staff-row {
    gap: 8px;
  }
  
  .silhouette-card {
    width: 60px;
    height: 75px;
  }
  
  .silhouette-card--manager {
    width: 75px;
    height: 90px;
  }
  
  .manager-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    padding: 15px;
  }
  
  .manager-group .silhouette-card {
    width: 35px;
    height: 45px;
  }
  
  .manager-group .silhouette-card--manager {
    width: 45px;
    height: 55px;
  }
  
  .manager-group__staff {
    gap: 4px;
  }
}

@media (max-width: 480px) {
  .manager-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 12px;
  }
  
  .manager-group .silhouette-card {
    width: 40px;
    height: 50px;
  }
  
  .manager-group .silhouette-card--manager {
    width: 50px;
    height: 62px;
  }
}

/* === WCAG 2.2 AA FOCUS INDICATORS === */
.our-team-page :focus {
  outline: 3px solid #4a6bb5;
  outline-offset: 2px;
}

.our-team-page :focus:not(:focus-visible) {
  outline: none;
}

.our-team-page :focus-visible {
  outline: 3px solid #4a6bb5;
  outline-offset: 2px;
}

/* Focus on dark backgrounds (hero section) */
.team-hero :focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 2px;
}

/* Silhouette card focus for keyboard navigation */
.silhouette-card:focus-visible {
  outline: 3px solid #4a6bb5;
  outline-offset: 2px;
}

/* === REDUCED MOTION SUPPORT === */
@media (prefers-reduced-motion: reduce) {
  .our-team-page,
  .our-team-page * {
    animation: none !important;
    transition: none !important;
  }
  
  .silhouette-card:hover {
    transform: none;
  }
  
  .silhouette-card--manager:hover {
    transform: none;
  }
  
  .org-connector {
    animation: none !important;
  }
}

/* ===== HIGH CONTRAST MODE ===== */
/*
 * High contrast overrides for accessibility and e-ink devices.
 * Applied when .high-contrast class is on <html> element.
 */
.high-contrast .our-team-page {
  background: #ffffff;
}

.high-contrast .team-hero {
  background: #000000;
  border: 3px solid #000000;
}

.high-contrast .team-hero__title {
  color: #ffffff;
}

.high-contrast .team-hero__subtitle {
  color: #ffffff;
  opacity: 1;
}

.high-contrast .team-section {
  background: #ffffff;
}

.high-contrast .team-section__title {
  color: #000000;
}

.high-contrast .founder-card {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
}

.high-contrast .founder-card--spaced {
  margin-top: 40px;
}

.high-contrast .founder-card__image-container {
  background: #f0f0f0;
  border-right: 2px solid #000000;
}

.high-contrast .founder-card__image-placeholder {
  background: #000000;
  color: #ffffff;
  box-shadow: none;
}

.high-contrast .founder-card__image {
  filter: grayscale(100%);
}

.high-contrast .founder-card__role {
  color: #000000;
}

.high-contrast .founder-card__name {
  color: #000000;
}

.high-contrast .founder-card__bio {
  color: #000000;
}

.high-contrast .founder-card__duties {
  color: #000000;
}

.high-contrast .founder-card__quote {
  color: #000000;
  border-left-color: #000000;
}

.high-contrast .more-sections-notice {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
}

.high-contrast .more-sections-notice__title {
  color: #000000;
}

.high-contrast .more-sections-notice__text {
  color: #000000;
}

.high-contrast .future-team-section {
  background: #ffffff;
  border: 2px solid #000000;
}

.high-contrast .future-team-section::before {
  display: none;
}

.high-contrast .org-tier {
  margin-bottom: 40px;
}

.high-contrast .org-tier--preview {
  margin-bottom: 60px;
  padding-bottom: 40px;
  border-bottom: 2px solid #000000;
}

.high-contrast .org-connector {
  background: #000000;
  box-shadow: none;
  animation: none;
}

.high-contrast .org-branch {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.high-contrast .org-branch__line {
  background: #000000;
}

.high-contrast .staff-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  max-width: 800px;
}

.high-contrast .manager-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.high-contrast .manager-group__staff {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 0;
}

.high-contrast .manager-group .org-connector {
  height: 15px;
  background: #000000;
  box-shadow: none;
  animation: none;
}

.high-contrast .manager-group .silhouette-card {
  width: 45px;
  height: 58px;
  border-radius: 6px;
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
  animation: none;
}

.high-contrast .manager-group .silhouette-card svg {
  fill: #000000;
}

.high-contrast .manager-group .silhouette-card--manager {
  width: 60px;
  height: 75px;
  border-radius: 8px;
  background: #f0f0f0;
  border: 2px solid #000000;
  box-shadow: none;
  animation: none;
}

.high-contrast .manager-group .silhouette-card--manager svg {
  fill: #000000;
}

.high-contrast .silhouette-card {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
  animation: none;
}

.high-contrast .silhouette-card:hover {
  transform: none;
  box-shadow: none;
}

.high-contrast .silhouette-card svg {
  fill: #000000;
}

.high-contrast .silhouette-card--manager {
  background: #f0f0f0;
  border: 2px solid #000000;
  box-shadow: none;
  animation: none;
}

.high-contrast .silhouette-card--manager:hover {
  transform: none;
  box-shadow: none;
}

.high-contrast .silhouette-card--manager svg {
  fill: #000000;
}

.high-contrast .manager-grid {
  background: #ffffff;
  border: 2px solid #000000;
  box-shadow: none;
}

/* High contrast focus indicators */
.high-contrast .our-team-page :focus-visible {
  outline: 3px solid #000000 !important;
  outline-offset: 2px !important;
}

.high-contrast .team-hero :focus-visible {
  outline: 3px solid #ffffff !important;
  outline-offset: 2px !important;
}
