/* ============================================================
   COMPANY PAGE — page stylesheet
   Layout specific to company.html. Reuses page.css + the shared
   component CSS (cards, menu, caption, footer, corners, rails).
   ============================================================ */

/* ---- top section: menu only (borderless, like services header) ---- */
.section--companypage {
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
}
.section--companypage::before,
.section--companypage::after {
  display: none !important;
}
.section--companypage .section__inner {
  padding-top: 0;
  padding-bottom: 0;
}

/* ============================================================
   THE COMPANY — solid-border intro section
   ============================================================ */
.section--companyintro .section__inner {
  padding: 64px 60px 80px;
}

/* big orange section title ("The Company") — uses .sc-heading--display */
.companyintro__title {
  margin: 0 0 28px;
}

/* intro body copy — standard grey body text */
.companyintro__desc {
  margin: 0;
  max-width: 1040px;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-md);
  font-weight: var(--sc-weight-regular);
  line-height: 1.6;
  color: var(--sc-gray-2);
}
/* darker lead sentence, matching the .swiss__desc-lead treatment */
.companyintro__desc-lead {
  color: var(--sc-ink);
}

/* ============================================================
   THE TEAM — solid-border section
   ============================================================ */
.section--companyteam .section__inner {
  padding: 64px 60px 80px;
}

/* big orange section title ("The Team") — uses .sc-heading--display */
.companyteam__title {
  margin: 0 0 44px;
}

/* ---- featured row: 4 leaders with photos ---- */
.team__featured {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 24px;
}

/* ---- a single person block (shared by featured + list) ---- */
.team__person {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.team__name {
  margin: 0 0 5px;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-sm);
  font-weight: var(--sc-weight-bold);
  letter-spacing: 0.03em;
  text-transform: uppercase; /* all names in caps */
  color: var(--sc-accent); /* accent */
}
.team__role {
  margin: 0;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-sm);
  font-weight: var(--sc-weight-regular);
  line-height: 1.35;
  color: var(--sc-gray-2);
}

/* photo frame (featured only) — same dashed picture frame as index.html
   .services__frame: 8px padding inside a dashed rectangle, square corners */
.team__photo {
  width: 100%;
  max-width: 240px;
  aspect-ratio: 4 / 5;
  box-sizing: border-box;
  padding: 13px;
  overflow: hidden;
  margin-bottom: 14px;
  background-color: transparent; /* gap shows the section bg, not a grey strip */
  background-image:
    linear-gradient(90deg, var(--sc-gray) 0 16px, transparent 16px 26px),
    linear-gradient(90deg, var(--sc-gray) 0 16px, transparent 16px 26px),
    linear-gradient(0deg, var(--sc-gray) 0 16px, transparent 16px 26px),
    linear-gradient(0deg, var(--sc-gray) 0 16px, transparent 16px 26px);
  background-size:
    26px 1px,
    26px 1px,
    1px 26px,
    1px 26px;
  background-position:
    left top,
    left bottom,
    left top,
    right top;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
}
.team__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(100%); /* black & white headshots */
}

/* LinkedIn icon */
.team__linkedin {
  display: inline-flex;
  width: 18px;
  height: 18px;
  margin-top: 12px;
  color: #b3b3b5; /* grey icon */
  transition: color 0.15s ease;
}
.team__linkedin:hover {
  color: var(--sc-gray-2);
}
.team__linkedin svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ---- group (Engineering / Operations) ---- */
.team__group {
  margin-top: 64px;
}
.team__grouptitle {
  margin: 0 0 14px;
  font-family: var(--sc-font-sans);
  font-size: 32px;
  font-weight: var(--sc-weight-bold);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--sc-ink); /* dark heading */
}
.team__groupdesc {
  margin: 0 0 36px;
  max-width: 780px;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-base);
  font-weight: var(--sc-weight-regular);
  line-height: 1.55;
  color: var(--sc-gray-2);
}

/* two columns of people inside a group */
.team__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 48px;
  row-gap: 30px;
}
.team__col {
  display: contents; /* people flow directly into the 3-col grid above */
}

/* ---- responsive ---- */
@media (max-width: 1100px) {
  .section--companyintro .section__inner {
    padding: 48px 40px 64px;
  }
  .section--companyteam .section__inner {
    padding: 48px 40px 64px;
  }
  .team__featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 28px;
  }
  .team__grouptitle {
    font-size: 28px;
  }
  .team__cols {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 40px;
  }
}
@media (max-width: 720px) {
  .section--companyintro .section__inner {
    padding: 36px 22px 48px;
  }
  .companyintro__title {
    margin-bottom: 24px;
  }
  .companyintro__desc {
    font-size: var(--sc-text-base);
  }
  .section--companyteam .section__inner {
    padding: 36px 22px 48px;
  }
  .companyteam__title {
    margin-bottom: 32px;
  }
  .team__featured {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 20px;
  }
  .team__group {
    margin-top: 48px;
  }
  .team__grouptitle {
    font-size: var(--sc-text-lg);
  }
  .team__groupdesc {
    font-size: var(--sc-text-base);
  }
  .team__cols {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }
}

/* ============================================================
   CAREER OPPORTUNITIES — solid-border section
   Orange caption + dark accent button on one row, then a
   full-width photo in the site's standard dashed frame.
   ============================================================ */
.section--companycareers .section__inner {
  padding: 64px 60px 80px;
}
.careers__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 36px;
}
.careers__title {
  margin: 0;
}
.careers__btn {
  flex: 0 0 auto;
}

/* intro copy under the heading — matches the .companyintro__desc treatment */
.careers__desc {
  margin: 0 0 36px;
  max-width: 1040px;
  font-family: var(--sc-font-sans);
  font-size: var(--sc-text-md);
  font-weight: var(--sc-weight-regular);
  line-height: 1.6;
  color: var(--sc-gray-2);
}

/* photo in the same dashed picture frame used across the site */
.careers__media {
  box-sizing: border-box;
  padding: 8px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, var(--sc-gray) 0 16px, transparent 16px 26px),
    linear-gradient(90deg, var(--sc-gray) 0 16px, transparent 16px 26px),
    linear-gradient(0deg, var(--sc-gray) 0 16px, transparent 16px 26px),
    linear-gradient(0deg, var(--sc-gray) 0 16px, transparent 16px 26px);
  background-size:
    26px 1px,
    26px 1px,
    1px 26px,
    1px 26px;
  background-position:
    left top,
    left bottom,
    left top,
    right top;
  background-repeat: repeat-x, repeat-x, repeat-y, repeat-y;
}
.careers__img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 1100px) {
  .section--companycareers .section__inner {
    padding: 48px 40px 64px;
  }
}
@media (max-width: 720px) {
  .section--companycareers .section__inner {
    padding: 36px 22px 48px;
  }
  .careers__head {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 24px;
  }
  .careers__title {
  }
}
