/* ============================================
   TEAM GRID & MEMBER COMPONENTS
   For About Us page
   ============================================ */

/* ============================================
   HERO VARIANT: FULL HEIGHT WITH BLURRED SIDES
   - Full image height visible (no vertical crop)
   - Sides crop/blur fills gaps
   - Parallax fixed effect
   ============================================ */

.hero {
  min-height: auto;
}

.hero img {
  margin-top: var(--navbar-height);
  position: relative;
  width: 100%;
}

.hero h1 {
  position: absolute;
  top: calc(100vw / (21 / 9) * 1.1);
  font-size: clamp(2em, 10vw, 6em);
}

@media(max-width: 500px) {
  .hero h1 {
      top: calc(100vw / (10 / 9) * 0.85);
  }
}

/* ============================================
   MISSION & VALUES LAYOUT
   ============================================ */
#mission h3 {
  text-align: center;
  font-size: 1.3rem;
  margin-block-start: 2rem;
  margin-block-end: 1rem;
}

#mission h3:first-of-type {
  margin-block-start: 0;
}

#mission > p {
  text-align: center;
}

/* Values two-column grid (3 left, 2 right) */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 3rem;
}

@container (min-width: 576px) {
  .values-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.values-column p {
  margin-block-end: 0.75rem;
}

/* ============================================
   TEAM SECTIONS
   ============================================ */

/* Section headings within team */
.team-section-heading {
  text-align: left;
  font-size: 1.4rem;
  margin-block-start: 3rem;
  margin-block-end: 1.5rem;
  padding-block-end: 0.5rem;
  border-bottom: 2px solid var(--aromatic-cedar);
}

/* Grid layout for team members - flexbox for centered last item */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3rem;
}

.team-grid > .team-member {
  width: 100%;
}

@container (min-width: 576px) {
  .team-grid {
    gap: 2rem;
  }
  
  .team-grid > .team-member {
    width: calc(50% - 1rem);
  }
}

@container (min-width: 992px) {
  .team-grid {
    gap: 3rem;
  }
  
  .team-grid > .team-member {
    width: calc(50% - 1.5rem);
  }
}

/* Individual team member card */
.team-member {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Featured member (founders) - stacked layout with large photo on top */
.team-member-featured {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  margin-block-end: 2rem;
}

.team-member-featured .team-member-details h4:first-of-type {
  margin-block-start: 1em;
}

/* Large hero photo for founders - rectangular */
.team-member-photo-hero {
  display: flex;
  justify-content: center;
  width: 100%;
}

.team-member-photo-hero img {
  width: 100%;
  max-width: 700px;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 8px;
}

@container (min-width: 768px) {
  .team-member-photo-hero img {
    max-width: 700px;
  }
}

.team-member-featured .team-member-info {
  /*text-align: center;*/
  max-width: 800px;
}

.team-member-featured .team-member-info h3 {
  text-align: center;
}

.team-member-featured .team-member-links {
  justify-content: center;
}

/* Photo container */
.team-member-photo {
  display: flex;
  justify-content: center;
}

.team-member-photo img {
  width: 250px;
  height: 250px;
  object-fit: cover;
  border-radius: 50%;
}

@container (min-width: 576px) {
  .team-member-photo img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-width: 280px;
  }
}

.team-member-info h3,
.team-member-info h4 {
  margin-block-end: 0.25rem;
  text-align: inherit;
}

.team-member-info h4 {
  font-size: 1.25rem;
  text-align: center;
}

.team-member-title {
  font-style: italic;
  color: var(--aromatic-cedar);
  margin-block-end: 1rem;
  font-weight: 500;
  text-align: center;
}

.team-member-info p {
  margin-block-end: 0.75rem;
}

/* Links row */
.team-member-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  margin-block-start: 1rem;
  justify-content: center;
}

@container (min-width: 576px) {
  .team-member-links {
    justify-content: flex-start;
  }
}

.team-member-links a {
  font-size: 0.95rem;
}

/* Expandable details for education/training */
.team-member-details {
  margin-block-start: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  text-align: left;
}

.team-member-details summary {
  padding: 1rem;
  font-weight: 600;
  cursor: pointer;
  background: #f9f9f9;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-member-details summary::-webkit-details-marker {
  display: none;
}

.team-member-details summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--aromatic-cedar);
}

.team-member-details[open] summary::after {
  content: '−';
}

.team-member-details[open] summary {
  border-bottom: 1px solid #e0e0e0;
}

.team-member-details h4 {
  font-size: 1rem;
  margin-block-start: 1.5rem;
  margin-block-end: 0.5rem;
  text-align: left;
}

.team-member-details h4:first-of-type {
  margin-block-start: 0;
}

.team-member-details > *:not(summary) {
  padding: 0 1rem;
}

.team-member-details > *:last-child {
  padding-bottom: 1rem;
}

/* Override the general padding for lists to add proper indent */
.team-member-details ul {
  padding-inline-start: 2.5rem;
  padding-inline-end: 1rem;
  margin-block-end: 0;
  text-align: left;
}

.team-member-details li {
  margin-block-end: 0.5rem;
  text-align: left;
}