/**
 * Contact page — Our Locations accordion section
 * Figma node: 631:5104 (desktop), 631:5598 (mobile)
 *
 * Uses native <details>/<summary> for accessible open/close —
 * no JS required. OEM avatars are desktop-only; phone rows are
 * mobile-only.
 */

/* ── Section wrapper ───────────────────────────────────────────── */

.contact-locs {
  background-color: var(--color-beige);
}

/* ── Header block ──────────────────────────────────────────────── */

.contact-locs__header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
  margin-bottom: 40px;
}

.contact-locs__title {
  font-size: var(--font-size-h2);
  font-weight: 600;
  color: var(--color-dark);
  margin: 0;
  line-height: 1.2;
}

.contact-locs__subtitle {
  font-size: var(--font-size-h4);
  font-weight: 400;
  color: var(--color-dark);
  margin: 0;
  line-height: 1.5;
}

/* ── Accordion list ────────────────────────────────────────────── */

.contact-locs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-locs__item-wrap {
  /* list item reset */
}

/* ── Single accordion item — <details> ─────────────────────────── */

.contact-locs__item {
  background: var(--color-white);
  border: 1.271px solid rgba(37, 37, 37, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

/* ── Summary row — clickable trigger ───────────────────────────── */

.contact-locs__summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  min-height: 82px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

/* Remove native disclosure triangle in all browsers */
.contact-locs__summary::-webkit-details-marker {
  display: none;
}

.contact-locs__summary::marker {
  display: none;
}

.contact-locs__summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
  border-radius: 10px;
}

/* ── Red badge ─────────────────────────────────────────────────── */

.contact-locs__badge {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background-color: var(--color-primary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-locs__badge svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── City meta ─────────────────────────────────────────────────── */

.contact-locs__meta {
  flex: 1 0 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-locs__city {
  display: block;
  font-size: 20px;
  font-weight: 400;
  color: var(--color-dark);
  line-height: 1.3;
}

.contact-locs__count {
  display: block;
  font-size: 16px;
  font-weight: 300;
  color: var(--color-grey);
  line-height: 1.3;
}

/* ── Chevron ───────────────────────────────────────────────────── */

.locs__chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.contact-locs__item[open]>.contact-locs__summary .locs__chevron {
  transform: rotate(180deg);
}

/* ── Expanded body ─────────────────────────────────────────────── */

.contact-locs__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 16px;
  animation: locsBodyIn 0.2s ease forwards;
}

@keyframes locsBodyIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Plant sub-card ────────────────────────────────────────────── */

.contact-locs__plant {
  background: var(--color-beige);
  border: 1.271px solid rgba(37, 37, 37, 0.05);
  border-radius: 10px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Plant header: name + OEM avatars */
.contact-locs__plant-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-locs__plant-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  white-space: nowrap;
}

/* OEM partner avatar circles — desktop only */
.contact-locs__avatars {
  display: flex;
  gap: 8px;
  align-items: center;
}

.contact-locs__avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Address row */
.contact-locs__plant-addr {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.contact-locs__plant-addr svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-locs__plant-addr span {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-grey);
  line-height: 1.5;
}

/* Phone row — shown on mobile, hidden on desktop */
.contact-locs__plant-phone {
  display: none;
  align-items: center;
  gap: 8px;
}

.contact-locs__phone-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.contact-locs__ph-label {
  font-size: 16px;
  font-weight: 400;
  color: var(--color-dark);
}

.contact-locs__ph-num {
  font-size: 16px;
  font-weight: 300;
  color: var(--color-grey);
}

/* ── Footer tally ──────────────────────────────────────────────── */

.contact-locs__footer {
  margin-top: 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  color: var(--color-grey);
  line-height: 1.4;
}

.contact-locs__total {
  font-weight: 600;
  color: var(--color-primary);
}

/* ── Mobile — ≤ 600px ──────────────────────────────────────────── */

@media (max-width: 600px) {

  .contact-locs__header {
    text-align: left;
  }

  .contact-locs__title {
    font-size: clamp(24px, 8vw, 32px);
    font-weight: 600;
  }

  .contact-locs__subtitle {
    font-size: 20px;
    font-weight: 300;
  }

  /* Show phone row on mobile */
  .contact-locs__plant-phone {
    display: flex;
  }

  /* Hide OEM avatar circles on mobile */
  .contact-locs__avatars {
    display: none;
  }

}