/* =============================================================
   SPA Coventry Branch — Branches Section
   Place at: style/branches.css
   ============================================================= */

.branches-section {
  max-width: 1140px;
  margin: 32px auto 0;
  padding: 26px 28px 24px;
  background: var(--linen);
  border: 1px solid var(--sand);
  border-radius: 14px;
}

.branches-heading {
  margin-bottom: 8px;
}

.branches-intro {
  font-size: 0.86rem;
  color: var(--text-mid);
  line-height: 1.65;
  margin-bottom: 20px;
}

.branches-intro strong {
  color: var(--clay-dark);
}

/* ── Equal-size grid ──────────────────────────────────────────
   7 equal columns so every card is identical width.
   min-height forces identical height regardless of name length.
   ──────────────────────────────────────────────────────────── */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

/* Individual branch card */
.b-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  min-height: 72px;
  border-radius: 9px;
  border: 1px solid #e8ddd0;
  background: #fff;
  text-decoration: none;
  color: var(--text-mid);
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  box-sizing: border-box;
  transition: background var(--transition), border-color var(--transition),
              color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  box-shadow: 0 1px 4px rgba(139,69,19,0.05);
}

a.b-item:hover {
  background: var(--cream);
  border-color: var(--saffron);
  color: var(--clay-dark);
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(139,69,19,0.11);
}

/* Coventry — highlighted as home */
.b-item--home {
  border-color: var(--clay);
  background: rgba(139,69,19,0.06);
  color: var(--clay-dark);
  font-weight: 700;
  cursor: default;
}

.b-item--home em {
  display: block;
  font-size: 0.62rem;
  color: var(--saffron);
  font-style: normal;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 2px;
}

/* No website */
.b-item--nosite {
  opacity: 0.55;
  cursor: default;
}

/* Pin icon */
.b-pin {
  color: var(--saffron);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.b-item--home .b-pin {
  color: var(--clay);
}

.b-item--nosite .b-pin {
  color: var(--sand);
}

/* Branch name */
.b-name {
  line-height: 1.25;
}

/* External link icon */
.b-ext {
  font-size: 0.55rem;
  color: var(--sand);
  transition: color var(--transition);
}

a.b-item:hover .b-ext {
  color: var(--saffron);
}

/* "no site" label */
.b-nosite {
  font-size: 0.6rem;
  color: var(--text-light);
  font-style: italic;
}

/* Source line */
.branches-source {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--text-light);
}

.branches-source i {
  color: var(--saffron);
  margin-right: 4px;
}

.branches-source a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.branches-source a:hover {
  color: var(--clay-dark);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .branches-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (max-width: 620px) {
  .branches-section {
    padding: 20px 16px 18px;
    margin: 24px 12px 0;
  }
  .branches-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 400px) {
  .branches-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
