/* =============================================
   BRANCHES PAGE — branches.css
   Matches careers.css: #d71920 red, #1a1a1a dark,
   #f5f5f5 light bg, Poppins + Work Sans fonts
   ============================================= */

/* ── Hero ── */
.branches-hero {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(135deg, #d71920 0%, #9e1016 60%, #1a1a1a 100%);
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.branches-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(255,255,255,.08) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 80%, rgba(255,255,255,.05) 0%, transparent 60%);
  pointer-events: none;
}
.branches-hero .hero-eyebrow {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  padding: 6px 20px;
  border-radius: 50px;
  margin-bottom: 20px;
}
.branches-hero h1 {
  font-family: 'Work Sans', sans-serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  color: #fff;
  text-transform: uppercase;
}
.branches-hero p.sub {
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: rgba(255,255,255,.82);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  display: block;
  font-family: 'Work Sans', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hero-stat .lbl {
  font-family: 'Poppins', sans-serif;
  font-size: .72rem;
  color: rgba(255,255,255,.65);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 5px;
  display: block;
}
.hero-wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
}
.hero-wave svg { display: block; width: 100%; }

/* ── Filter bar ── */
.branches-filter {
  background: #fff;
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
}
.branches-filter .container {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.branches-filter .filter-label {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #aaa;
  margin-right: 4px;
}
.branch-filter-btn {
  padding: 8px 22px;
  border-radius: 25px;
  border: 2px solid #d71920;
  background: transparent;
  color: #d71920;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .25s;
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.branch-filter-btn:hover,
.branch-filter-btn.active {
  background: #d71920;
  color: #fff;
}

/* ── Section ── */
.branches-section {
  padding: 70px 0 90px;
  background: #f5f5f5;
}
.branches-section h3 {
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 10px;
}
.branches-section .sub {
  text-align: center;
  color: #666;
  font-size: 15px;
  margin-bottom: 50px;
  line-height: 1.7;
}

/* ── Grid ── */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Branch Card ── */
.branch-card {
  background: #fff;
  border: 1px solid #ebebeb;
  border-radius: 12px;
  box-shadow: 0 3px 16px rgba(0,0,0,.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transition: transform .3s ease, box-shadow .3s ease;
}
/* red top bar — mirrors the left bar on .job-card */
.branch-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: #d71920;
  z-index: 1;
}
.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(0,0,0,.12);
}

/* Photo */
.branch-photo {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.branch-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
  display: block;
}
.branch-card:hover .branch-photo img { transform: scale(1.05); }
.branch-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.45) 100%);
}
.branch-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
}
.branch-status-badge.open {
  background: rgba(255,255,255,.92);
  color: #d71920;
  border-color: #d7192035;
}
.branch-status-badge.soon {
  background: rgba(255,255,255,.92);
  color: #888;
  border-color: #ddd;
}
.branch-number {
  position: absolute;
  bottom: 12px;
  left: 14px;
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
}

/* Body */
.branch-body {
  padding: 24px 26px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.branch-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0;
  line-height: 1.3;
}
.branch-area {
  font-family: 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #d71920;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: -4px 0 0;
}

/* Info list */
.branch-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.branch-info-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #666;
  line-height: 1.55;
}
.branch-info-list li .mdi {
  font-size: 15px;
  color: #d71920;
  margin-top: 1px;
  flex-shrink: 0;
}

/* Divider */
.branch-divider {
  height: 1px;
  background: #f0f0f0;
  margin: 0;
}

/* Service chips — mirrors .job-tag */
.branch-services {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.branch-service-chip {
  background: #f5f5f5;
  color: #555;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Actions — mirrors .job-actions */
.branch-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 4px;
}
/* mirrors .btn-apply */
.btn-directions {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #d71920;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s, transform .2s;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.btn-directions:hover {
  background: #b5141a;
  color: #fff;
  transform: scale(1.03);
  text-decoration: none;
}
/* mirrors .btn-details */
.btn-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: transparent;
  border: 2px solid #e0e0e0;
  color: #666;
  padding: 9px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all .25s;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.btn-call:hover {
  border-color: #d71920;
  color: #d71920;
  text-decoration: none;
}

/* ── Map strip ── */
.branches-map-strip {
  background: #1a1a1a;
  padding: 60px 0;
  text-align: center;
  color: #fff;
}
.branches-map-strip h3 {
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 10px;
  font-size: 28px;
}
.branches-map-strip h3 span { color: #d71920; }
.branches-map-strip p {
  font-size: 15px;
  color: rgba(255,255,255,.6);
  margin-bottom: 28px;
}
.map-embed {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,.4);
  max-width: 1000px;
  margin: 0 auto;
  border: 1px solid rgba(215,25,32,.3);
}
.map-embed iframe {
  width: 100%;
  height: 420px;
  border: none;
  display: block;
}

/* ── CTA — mirrors .careers-cta exactly ── */
.branches-cta {
  background: #d71920;
  padding: 60px 20px;
  text-align: center;
  color: #fff;
}
.branches-cta h3 {
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 12px;
  font-size: 28px;
}
.branches-cta p {
  color: rgba(255,255,255,.85);
  font-size: 15px;
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.7;
}
.btn-cta-branch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: #d71920;
  border: none;
  padding: 14px 36px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  font-family: 'Poppins', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background .25s, transform .2s;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-cta-branch:hover {
  background: #f0f0f0;
  color: #d71920;
  text-decoration: none;
  transform: scale(1.04);
}

/* ── No results — mirrors .no-results / .empty-state ── */
.branch-no-results {
  display: none;
  text-align: center;
  padding: 80px 20px;
  grid-column: 1 / -1;
}
.branch-no-results.show { display: block; }
.branch-no-results .mdi {
  font-size: 60px;
  color: #ddd;
  display: block;
  margin-bottom: 16px;
}
.branch-no-results h5 { color: #aaa; font-size: 18px; margin-bottom: 8px; }
.branch-no-results p  { color: #bbb; font-size: 14px; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .branches-grid { grid-template-columns: 1fr; }
  .hero-stats    { gap: 28px; }
  .branches-filter .container { gap: 8px; }
  .branch-filter-btn { font-size: 12px; padding: 7px 16px; }
}