@charset "UTF-8";
.mb_team-hero {
  padding-top: 200px;
  position: relative;
  overflow: hidden;
}
.mb_team-hero .decorative-vector {
  position: absolute;
  top: 11%;
  left: unset;
  right: -7%;
  width: 212px;
}
.mb_team-hero__wrapper {
  max-width: 1100px;
  width: 90%;
  margin: 0 auto;
}
.mb_team-hero__wrapper .team-hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mb_team-hero__wrapper .team-hero h1, .mb_team-hero__wrapper .team-hero h2 {
  color: var(--wine);
  font-family: var(--arapey-font);
  font-size: 50px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.mb_team-hero__wrapper .team-hero__text {
  width: 50%;
}
.mb_team-hero__wrapper .team-hero__text p {
  color: var(--text-color);
  font-size: 20px;
}
.mb_team-hero__wrapper .team-hero__img {
  width: 40%;
}
.mb_team-hero__wrapper .team-hero__img h2 {
  display: none;
}
.mb_team-hero__wrapper .team-hero__img img {
  border-radius: 232.65px 232.65px 30px 30px;
  width: 100%;
}

.mb_team {
  position: relative;
  isolation: isolate;
  overflow: clip;
}
.mb_team .mobile-only {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: center;
  padding-top: 80px;
  display: none;
}
.mb_team .mobile-only button {
  outline: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
}
.mb_team .decorative-vector {
  position: absolute;
  top: 60%;
  left: -7%;
  z-index: 3;
}
.mb_team__wrapper {
  max-width: 1290px;
  width: 90%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -100vh;
  gap: 72px 47px;
}
.mb_team__wrapper .mb_team-card {
  width: 100%;
  position: relative;
  z-index: 4;
}
.mb_team__wrapper .mb_team-card .mb_team-card-image {
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translateY(100px);
  position: relative;
  z-index: 2;
}
.mb_team__wrapper .mb_team-card .mb_team-card-image img {
  width: 167px;
  height: 167px;
  border-radius: 50%;
  border: 1px solid #FFF;
  object-fit: cover;
  transition: all 0.3s ease-in;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body {
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-radius: 54.364px;
  border: 1.045px solid #FFF;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(17.5px);
  text-align: center;
  padding: 60px 12px 0px;
  height: 555px;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body h3.name {
  color: var(--wine);
  font-family: var(--arapey-font);
  font-size: 37px;
  font-weight: 400;
  text-transform: uppercase;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body p {
  font-size: 17px;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body p.pronouns {
  font-size: 18px;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body p.qualifications {
  font-size: 19px;
  font-weight: 700;
  margin: 32px;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body p.license {
  height: 48px;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body .additional-info {
  max-height: unset; 
  margin-bottom: 20px;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body .additional-info p {
  font-size: 16px;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body .additional-info p.title {
  font-weight: 700;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body .additional-info p a {
  color: var(--text-color);
}
.mb_team__wrapper .mb_team-card .mb_team-card-body .additional-info p a:hover {
  text-decoration: underline;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body .cta-team {
  padding-top: 10px;
}
.mb_team__wrapper .mb_team-card .mb_team-card-body .cta-team a {
  color: var(--wine);
  font-weight: 700;
}
.mb_team__wrapper .mb_team-card:hover .mb_team-card-image img {
  transform: scale(1.1);
}

.mb_team .team-snap-anchor {
  height: 1px;
  scroll-snap-align: start;
}
.mb_team .team_bg {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-bottom: 4rem;
  background: url("../img/team-bg.png") center/cover no-repeat;
  z-index: 0;
  pointer-events: none;
}
.mb_team .team_bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgba(255, 255, 255, 0) 18%, rgba(255, 255, 255, 0) 82%, rgb(255, 255, 255) 100%);
}

/****************** MODAL ******************/
.modal-team-detail {
  display: flex;
  align-items: center;
  position: fixed;
  justify-content: center;
  top: 0;
  left: 0;
  z-index: 101;
  width: 100vw;
  height: 100vh;
  overflow-y: auto;
}
.modal-team-detail .backdrop-modal {
  display: block;
  width: 100%;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(14px);
  z-index: -1;
}
.modal-team-detail .modal-body {
  position: relative;
  border-radius: 64.295px;
  border: 1.96px solid #FFF;
  background: linear-gradient(12deg, rgba(168, 199, 205, 0.8) 6.54%, #FFF 97.55%);
  backdrop-filter: blur(21.63763237px);
  max-width: 1195px;
  max-height: 90vh;
  overflow-y: scroll;
}
.modal-team-detail .modal-body::-webkit-scrollbar {
  display: none;
}
.modal-team-detail .modal-body .btn-modal-close {
  position: absolute;
  right: 40px;
  top: 40px;
  cursor: pointer;
  z-index: 33;
}
.modal-team-detail .modal-body .btn-modal-close img {
  width: 30px;
}
.modal-team-detail .modal-body__content {
  padding: 60px 100px 30px 72px;
  position: relative;
  display: flex;
  justify-content: space-between;
}
.modal-team-detail .modal-body__content .mobile-title {
  display: none;
}
.modal-team-detail .modal-body__content .profile-photo {
  width: 40%;
  height: 476.427px;
  margin: 0 40px 16px 0;
}
.modal-team-detail .modal-body__content .profile-photo img {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  object-fit: cover;
  object-position: top center;
}
.modal-team-detail .modal-body__content .profile-text {
  width: 60%;
  color: var(--text-color);
}
.modal-team-detail .modal-body__content .profile-text h2 {
  color: var(--wine);
  font-family: var(--arapey-font);
  font-size: 51.5px;
  font-weight: 400;
  text-transform: uppercase;
}
.modal-team-detail .modal-body__content .profile-text h3, .modal-team-detail .modal-body__content .profile-text h4 {
  font-size: 22.5px;
  width: 95%;
  margin: 30px 0;
}
.modal-team-detail .modal-body__content .profile-text ul li {
  font-size: 17px;
  line-height: 150%;
  position: relative;
  margin: 20px 0;
}
.modal-team-detail .modal-body__content .profile-text ul li::before {
  content: "•";
  margin-right: 8px;
}
.modal-team-detail .modal-body__content .profile-text p.contact {
  font-weight: 900;
  margin: 24px 0;
}
.modal-team-detail .modal-body__content .profile-text p.contact a {
  color: var(--text-color);
}
.modal-team-detail .modal-body__content .profile-text p.contact::before {
  content: "•";
  margin-right: 8px;
}
.modal-team-detail .modal-body__content .profile-text .profile-btn {
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 2000px) {
  .mb_team-hero .decorative-vector {
    right: -5%;
  }
  .mb_team .decorative-vector {
    left: -5%;
  }
}
@media (max-height: 820px) {
  .modal-team-detail .modal-body__content {
    max-height: 80vh;
    overflow-y: scroll;
  }
}
@media (max-width: 1080px) {
  .mb_team__wrapper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .modal-team-detail .modal-body {
    width: 95%;
  }
}
@media (max-width: 880px) {
  .modal-team-detail .modal-body__content {
    max-height: 80vh;
    overflow-y: scroll;
  }
}
@media (max-width: 550px) {
  .mb_team-hero {
    padding-top: 130px;
  }
  .mb_team-hero .decorative-vector {
    width: 150px;
    top: 55%;
    z-index: -1;
    right: -20%;
  }
  .mb_team-hero__wrapper .team-hero {
    flex-direction: column-reverse;
    padding: 0 20px;
  }
  .mb_team-hero__wrapper .team-hero__text {
    width: 100%;
    margin-top: 23px;
  }
  .mb_team-hero__wrapper .team-hero__text h1 {
    display: none;
  }
  .mb_team-hero__wrapper .team-hero__text p {
    font-size: 14px;
  }
  .mb_team-hero__wrapper .team-hero__img {
    width: 100%;
  }
  .mb_team-hero__wrapper .team-hero__img h2 {
    display: block;
    text-align: center;
    font-size: 34px;
  }
  .mb_team .mobile-only {
    display: flex;
  }
  .mb_team .decorative-vector {
    display: none;
  }
  .mb_team__wrapper {
    grid-template-columns: 1fr;
    gap: 0 40px;
  }
  .mb_team__wrapper .mb_team-card .mb_team-card-body {
    height: 500px;
  }
  .mb_team__wrapper .mb_team-card .mb_team-card-body h3.name {
    font-size: 30px;
  }
  .mb_team__wrapper .mb_team-card .mb_team-card-body p.pronouns {
    font-size: 16px;
  }
  .mb_team__wrapper .mb_team-card .mb_team-card-body p.qualifications {
    font-size: 17px;
  }
  .mb_team__wrapper .mb_team-card .mb_team-card-body p.license {
    font-size: 15px;
  }
  .modal-team-detail .modal-body {
    border-radius: 30px;
  }
  .modal-team-detail .modal-body .btn-modal-close {
    top: 20px;
    right: 22px;
  }
  .modal-team-detail .modal-body .btn-modal-close img {
    width: 19px;
  }
  .modal-team-detail .modal-body__content {
    padding: 42px 22px;
    flex-direction: column;
  }
  .modal-team-detail .modal-body__content .mobile-title {
    display: block;
    padding: 0 20px;
  }
  .modal-team-detail .modal-body__content .mobile-title h2 {
    color: var(--wine);
    font-family: var(--arapey-font);
    font-size: 30px;
    font-weight: 400;
    text-transform: uppercase;
  }
  .modal-team-detail .modal-body__content .mobile-title h3 {
    color: var(--text-color);
    font-size: 14px;
    margin: 17px 0;
  }
  .modal-team-detail .modal-body__content .profile-photo {
    float: none;
    display: block;
    margin: 0 auto 20px;
    shape-outside: none;
    width: 100%;
    height: auto;
    max-height: 358px;
    aspect-ratio: 1;
  }
  .modal-team-detail .modal-body__content .profile-photo img {
    border-radius: 16px;
    object-position: top center;
  }
  .modal-team-detail .modal-body__content .profile-text {
    width: 100%;
  }
  .modal-team-detail .modal-body__content .profile-text h2, .modal-team-detail .modal-body__content .profile-text h3 {
    display: none;
  }
  .modal-team-detail .modal-body__content .profile-text h4 {
    font-size: 14px;
    margin: 17px 0;
  }
  .modal-team-detail .modal-body__content .profile-text ul li {
    font-size: 12px;
  }
  .modal-team-detail .modal-body__content .profile-text p {
    font-size: 12px;
  }
  .modal-team-detail .modal-body__content .profile-text p.contact {
    font-weight: 700;
    font-size: 14px;
  }
}

/* =========================================================================
   Who We Are — Phase 2 CSS overrides
   Paste at the end of main.css (or enqueue as separate file).
   These override specific rules in who-we-are.css without touching the
   compiled SASS source.
   ========================================================================= */


/* ----------------------------------------------------------
   1. HEADING: h2.name styles
   who-we-are.css targets h3.name — adding h2.name to match.
   ---------------------------------------------------------- */
.mb_team__wrapper .mb_team-card .mb_team-card-body h2.name {
    color: var(--wine);
    font-family: var(--arapey-font);
    font-size: 37px;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
}
@media (max-width: 550px) {
    .mb_team__wrapper .mb_team-card .mb_team-card-body h2.name {
        font-size: 30px;
    }
}


/* ----------------------------------------------------------
   2. BUTTON inside h2.name — reset browser defaults so it
   looks exactly like the original heading text.
   ---------------------------------------------------------- */
.mb_team__wrapper .mb_team-card-body .card-modal-trigger {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    cursor: pointer;
    font: inherit;        /* picks up h2.name font-size, family, weight */
    color: inherit;       /* picks up wine color from h2.name */
    display: block;
    width: 100%;
    text-align: center;
    line-height: inherit;
}

/* Remove default focus outline from the button text itself */
.mb_team__wrapper .mb_team-card-body .card-modal-trigger:focus {
    outline: none;
}


/* ----------------------------------------------------------
   3. INCLUSIVE CARD PATTERN — pseudo-element stretches the
   button to cover the entire card.
   Ref: https://inclusive-components.design/cards/

   .mb_team-card already has position: relative.
   ::after is absolute relative to .mb_team-card and fills it.
   z-index 3 sits above the headshot (z-index 2) so clicking
   the headshot also fires the modal.
   ---------------------------------------------------------- */
.mb_team__wrapper .mb_team-card .card-modal-trigger::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
}

/* Show focus ring on the WHOLE CARD when button is focused */
.mb_team__wrapper .mb_team-card:has(.card-modal-trigger:focus-visible) {
    outline: 3px solid var(--wine, #6C2F41);
    outline-offset: 4px;
    border-radius: 54.364px; /* matches .mb_team-card-body border-radius */
}

/* Contact links sit above the pseudo-element so they stay clickable */
.mb_team__wrapper .mb_team-card .additional-info {
    position: relative;
    z-index: 4;
}
/* Also raise the image so hover scale effect still looks correct */
.mb_team__wrapper .mb_team-card .mb_team-card-image {
    z-index: 4; /* was 2 — needs to be above the ::after pseudo */
}



/* ----------------------------------------------------------
   5. CARD HEIGHT — flexible now that contact is always shown.
   who-we-are.css sets height: 555px (fixed).
   ---------------------------------------------------------- */
.mb_team__wrapper .mb_team-card .mb_team-card-body {
    height: auto !important;
    min-height: 490px;
    padding-bottom: 20px; /* breathing room at the bottom */
}

/* ----------------------------------------------------------
   6. MODAL CLOSE BUTTON — was <span>, now <button>.
   who-we-are.css only set cursor:pointer and position.
   <button> needs browser default styles reset.
   ---------------------------------------------------------- */
.modal-team-detail .modal-body .btn-modal-close {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 0;
    /* position: absolute; right: 40px; top: 40px already in who-we-are.css */
}

.modal-team-detail .modal-body .btn-modal-close:focus-visible {
    outline: 3px solid var(--wine, #6C2F41);
    outline-offset: 4px;
    border-radius: 50%;
}


/* ----------------------------------------------------------
   7. MODAL PHONE — mirrors existing .contact styles from
   who-we-are.css so phone and email look the same.
   ---------------------------------------------------------- */
.modal-team-detail .modal-body__content .profile-text p.contact-phone {
    font-weight: 900;
    margin: 24px 0;
}

.modal-team-detail .modal-body__content .profile-text p.contact-phone a {
    color: var(--text-color);
}

.modal-team-detail .modal-body__content .profile-text p.contact-phone::before {
    content: "•";
    margin-right: 8px;
}

@media (max-width: 550px) {
    .modal-team-detail .modal-body__content .profile-text p.contact-phone {
        font-weight: 700;
        font-size: 14px;
    }
}
