/* ==========================================================================
   LVS AirSearch — team & contact page
   ========================================================================== */

.team{ background: var(--surface); }

.team-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.avatar{
  position: relative;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: #fff;
}

.avatar img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card:nth-child(1) .avatar{ background: var(--signal); }
.team-card:nth-child(2) .avatar{ background: var(--ink); }
.team-card:nth-child(3) .avatar{ background: var(--amber); }
.team-card:nth-child(4) .avatar{ background: #4c5560; }

.team-card h3{
  margin: 0 0 0.2rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.team-role{
  margin: 0 0 0.6rem;
  color: var(--signal);
  font-size: 0.85rem;
  font-weight: 500;
}

.team-card p{
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.55;
}

@media (max-width: 900px){ .team-grid{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px){
  .team-grid{ grid-template-columns: 1fr; gap: 1.6rem; }

  /* One compact row per person instead of a tall stacked card. */
  .team-card{
    display: grid;
    grid-template-columns: 88px 1fr;
    column-gap: 1.1rem;
    align-items: center;
  }
  .team-card .avatar{
    grid-row: 1 / span 2;
    width: 88px;
    height: 88px;
    margin-bottom: 0;
    font-size: 1.15rem;
  }
  .team-card h3{ align-self: end; }
  .team-card .team-role{ align-self: start; margin-bottom: 0; }
}

/* ---------- Partners & Sponsors ---------- */

.partners{ background: var(--studio-2); }

.partners-grid{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
}

.partner-logo{
  height: 64px;
  display: flex;
  align-items: center;
}

.partner-logo img{
  max-height: 100%;
  max-width: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.65;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.partner-logo:hover img{
  filter: grayscale(0);
  opacity: 1;
}

/* ---------- Contact ---------- */

.contact{ background: var(--studio-2); }

.contact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.contact-meta{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contact-meta li{ color: var(--ink); font-size: 1rem; }

.contact-meta a{
  color: var(--signal);
  text-decoration: none;
  font-weight: 500;
}

.contact-meta a:hover{ text-decoration: underline; }

.contact-form{
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 2rem;
}

.contact-form label{
  display: block;
  margin-bottom: 1.1rem;
  font-size: 0.85rem;
  color: var(--slate);
}

.contact-form input,
.contact-form textarea{
  width: 100%;
  margin-top: 0.4rem;
  padding: 0.8rem 0.75rem;
  border: 1px solid var(--hairline);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem; /* 16px: anything smaller makes iOS zoom the page on focus */
  border-radius: 0;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline: 2px solid var(--signal);
  outline-offset: 1px;
}

.contact-form textarea{ min-height: 130px; resize: vertical; }

/* Spam trap: kept off-screen (not display:none, which some bots skip). */
.form-trap{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form button{
  appearance: none;
  border: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.8rem 1.5rem;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  min-height: 48px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-form button:hover{ background: var(--signal); }

.contact-form button:disabled{
  opacity: 0.6;
  cursor: progress;
}

.form-note{
  margin: 0.9rem 0 0;
  min-height: 1.2em;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--signal);
}

.form-note.is-success{ color: #2f7d4f; }
.form-note.is-error{ color: var(--signal); }

@media (max-width: 800px){ .contact-grid{ grid-template-columns: 1fr; } }

/* ---------- Phones: these must stay at the end of the file so they
   override the base rules for the sections above. ---------- */

@media (max-width: 560px){
  .partners-grid{ gap: 1.4rem 2rem; }
  .partner-logo{ height: 40px; }
  .partner-logo img{ max-width: 130px; }

  .contact-form{ padding: 1.25rem; }
}

/* Contact links are text-sized by default; give them a finger-sized hit area. */
.contact-meta a{
  display: inline-block;
  padding: 0.8rem 0;
}
