/* Branch pages (branch-template.html, scripts/build/clone_branch.py) and the
   branch directory (branches-template.html).

   Almost everything on these pages is an existing component: the hero, the
   steps grid, .pill-row, .faq-item, the closing call-to-action. This file holds
   only what is new -- the hero tint, the address-and-hours card, the photo
   gallery, the pickup-area chips and the "what can you send" cards.

   The hero is deliberately NOT called hero--something: slp-mobile-nav.js adds a
   "get your rate" card to every .hero[class*="hero--"], and that card carries
   claims written for the Hyderabad office. */

.branch-hero {
  background-image:
    linear-gradient(135deg, rgba(74, 0, 114, 0.62) 0%, rgba(106, 0, 153, 0.5) 100%),
    var(--hero-img);
  background-size: cover;
  background-position: center;
  background-color: #4a0072;
}

/* ---- Address, hours and contact ---- */
.branch-visit { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.branch-card { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-lg, 16px); padding: 26px 28px; box-shadow: var(--shadow-sm); }
.branch-card h3 { color: var(--primary); margin: 0 0 14px; font-size: 1.15rem; }
.branch-visit .branch-card + .branch-card { margin-top: 20px; }

.branch-facts { margin: 0; padding: 0; list-style: none; }
.branch-facts li { display: flex; gap: 12px; padding: 9px 0; border-top: 1px solid var(--hairline); line-height: 1.5; }
.branch-facts li:first-child { border-top: 0; padding-top: 0; }
.branch-facts__icon { flex: 0 0 1.6em; text-align: center; }
.branch-facts a { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.branch-hours { width: 100%; border-collapse: collapse; margin: 0; }
.branch-hours th, .branch-hours td { text-align: left; padding: 8px 0; border-top: 1px solid var(--hairline); font-weight: 400; }
.branch-hours tr:first-child th, .branch-hours tr:first-child td { border-top: 0; }
.branch-hours th { color: var(--text); font-weight: 600; padding-right: 16px; }
.branch-hours td { text-align: right; white-space: nowrap; }
.branch-note-small { margin: 14px 0 0; font-size: 0.9rem; color: var(--muted); }

/* ---- Photos ---- */
.branch-photo { margin: 0; border-radius: var(--r-lg, 16px); overflow: hidden; background: var(--white); border: 1px solid var(--hairline); box-shadow: var(--shadow-sm); }
.branch-photo img { display: block; width: 100%; height: auto; }
.branch-photo figcaption { padding: 10px 16px 12px; font-size: 0.9rem; color: var(--muted); }
.branch-media { display: grid; gap: 18px; align-content: start; }
.branch-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.branch-gallery .branch-photo img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---- Pickup areas and what we send ---- */
.branch-areas { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 0 0 18px; padding: 0; }
.branch-areas li { background: var(--white); border: 1px solid var(--hairline); border-radius: var(--r-pill, 999px); padding: 8px 18px; font-weight: 600; color: var(--primary); box-shadow: var(--shadow-sm); }

.branch-send { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.branch-send a { display: block; background: var(--white); border: 1px solid var(--hairline); border-left: 4px solid var(--secondary, #6a0099); border-radius: var(--r-lg, 16px); padding: 18px 20px; box-shadow: var(--shadow-sm); color: var(--text); text-decoration: none; }
.branch-send a:hover { box-shadow: var(--shadow-md); }
.branch-send strong { display: block; color: var(--primary); margin-bottom: 4px; }
.branch-send span { font-size: 0.93rem; color: var(--muted); }

.branch-local h2 { color: var(--primary); margin-bottom: 16px; }

/* ---- Branch directory ---- */
.branch-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.branch-list .branch-card h3 a { color: inherit; text-decoration: none; }
.branch-badge { display: inline-block; margin-bottom: 10px; padding: 3px 12px; border-radius: var(--r-pill, 999px); background: #fff3cd; color: #6b4e00; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; }
.branch-badge--open { background: #e6f4ea; color: #14612c; }

.branch-cta-row { justify-content: center; }

@media (max-width: 860px) {
  .branch-visit { grid-template-columns: 1fr; gap: 22px; }
  .branch-card { padding: 20px 18px; }
}
