/* =============================================
   Easterseals Arkansas - Locations
   Location detail pages and the /locations/ archive.
   Detail pages reuse the 2026 Figma kit in css/who-we-serve.css
   (.breadcrumb-bar, .area-hero-photo, .area-programs--panel photo cards,
   .cta-banner--soft). Template-specific styles live here.
   Brand tokens: navy #004473, orange #cf4b04, yellow #ffa300,
   pale-yellow #ffe3b3, gray #f3f3f3. Contrast >= 4.5:1, no all-caps.
   Hover effects live on interactive elements only.
   ============================================= */

/* ---------- Hero: orange band + light card (map left, details right) ------ */
.loc-hero {
  padding: 48px 0 64px;
  background: transparent;
}
.loc-hero-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-light); /* #f3f3f3 */
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.18);
}
.loc-hero-map {
  position: relative;
  min-height: 440px;
  background: var(--color-border);
}
.loc-hero-map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.loc-hero-details {
  padding: 48px clamp(28px, 4vw, 56px);
}
.loc-hero-details h1 {
  color: var(--color-primary); /* orange (5:1 on #f3f3f3) */
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  margin: 0 0 28px;
}
.loc-info-group { margin-bottom: 20px; }
.loc-info-group:last-child { margin-bottom: 0; }
.loc-info-label {
  display: block;
  color: var(--color-secondary); /* navy label */
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 4px;
}
.loc-info-value {
  display: block;
  color: var(--color-text-body);
  font-size: 1rem;
  line-height: 1.55;
}
.loc-info-value a {
  color: var(--color-secondary);
  font-weight: 600;
  transition: color 0.2s;
}
.loc-info-value a:hover { color: var(--color-primary); }

/* ---------- About This Location (copy left, circular photo right) --------- */
.loc-about {
  padding: var(--section-spacing) 0;
  background: var(--color-white);
}
.loc-about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.loc-about--no-media .loc-about-inner {
  grid-template-columns: 1fr;
  max-width: 820px;
}
.loc-about-copy h2 {
  color: var(--color-primary); /* orange heading (large text) */
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  line-height: 1.15;
  margin: 0 0 18px;
}
.loc-about-copy p {
  color: var(--color-text-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  margin: 0 0 16px;
}
.loc-about-copy p:last-child { margin-bottom: 0; }
.loc-about-media { display: flex; justify-content: center; }

/* ---------- Staff at This Location (pale-yellow circular cards) ----------- */
.loc-staff { background: var(--color-white); }
.loc-staff .section-head { margin-bottom: 40px; }
.loc-staff .section-head .text-sub { color: var(--color-primary); }
.loc-staff .section-head h2 { color: var(--color-secondary); }
.loc-staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.loc-staff-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: #ffe3b3; /* brand pale-yellow */
  border-radius: var(--radius);
  padding: 36px 24px 30px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.loc-staff-card:hover {
  box-shadow: 0 14px 34px rgba(0, 68, 115, 0.16);
  transform: translateY(-4px);
}
.loc-staff-photo {
  display: block;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: 18px;
  box-shadow: 0 8px 22px rgba(0, 68, 115, 0.18);
}
.loc-staff-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.loc-staff-name {
  color: var(--color-secondary); /* navy on pale-yellow (8.4:1) */
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.3;
}
.loc-staff-role {
  color: var(--color-secondary);
  font-style: italic;
  font-size: 0.98rem;
  line-height: 1.4;
  margin-top: 6px;
}
.loc-staff-more {
  margin-top: 14px;
  color: var(--color-secondary);
  font-weight: 700;
  text-decoration: underline;
}
.loc-staff-card:hover .loc-staff-more { color: var(--color-primary); }

/* ---------- Photo gallery carousel --------------------------------------- */
.loc-gallery-section {
  padding: var(--section-spacing) 0;
  background: var(--color-white);
}
.loc-gallery { position: relative; }
.loc-gallery-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--radius);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.loc-gallery-track::-webkit-scrollbar { display: none; }
.loc-gallery-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-light);
}
.loc-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.loc-gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 68, 115, 0.85); /* navy */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background 0.2s;
}
.loc-gallery-arrow:hover { background: var(--color-primary); }
.loc-gallery-arrow svg { width: 22px; height: 22px; fill: #fff; }
.loc-gallery-arrow--prev { left: 14px; }
.loc-gallery-arrow--next { right: 14px; }
/* Single-row thumbnail strip (Figma): scrolls horizontally rather than
   wrapping into many rows when a location has a large gallery. */
.loc-gallery-thumbs {
  display: flex;
  gap: 12px;
  justify-content: flex-start;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
  margin-top: 18px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}
.loc-gallery-thumbs::-webkit-scrollbar { display: none; }
.loc-gallery-thumb {
  flex: 0 0 auto;
  width: 120px;
  height: 70px;
  padding: 0;
  border: 3px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  transition: border-color 0.2s;
}
.loc-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.loc-gallery-thumb.is-active { border-color: var(--color-primary); }

/* ---------- Archive intro (below the shared amber .hero-band) ---------- */
.location-archive-lead {
  font-size: 1.0625rem;
  color: var(--color-text-body);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ---------- Archive grid ---------- */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.archive-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: box-shadow 0.3s, transform 0.3s;
}
.archive-card:hover {
  box-shadow: 0 8px 32px rgba(0, 68, 115, 0.1);
  transform: translateY(-4px);
}
.archive-card-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.archive-card-name {
  font-size: 1.3125rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.3;
}
.archive-card-more {
  font-size: 1rem;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0.5px;
  color: var(--color-primary);
}
.archive-card-addr,
.archive-card-phone {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: 1.5;
  margin-top: 10px;
}
.archive-card-addr .loc-detail-icon,
.archive-card-phone .loc-detail-icon {
  width: 20px;
  height: 20px;
}
.archive-card-phone a {
  color: var(--color-secondary);
  font-weight: 600;
  transition: color 0.2s;
}
.archive-card-phone a:hover { color: var(--color-primary); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .archive-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .loc-hero-card { grid-template-columns: 1fr; }
  .loc-hero-map { min-height: 320px; }
  .loc-hero-details { padding: 36px clamp(24px, 6vw, 40px); }
  .loc-about-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }
  .loc-about-media { order: -1; }
}

@media (max-width: 600px) {
  .loc-hero { padding: 32px 0 44px; }
  .loc-staff-grid { grid-template-columns: 1fr; }
  .archive-grid { grid-template-columns: 1fr; }
  .loc-gallery-thumb { width: 84px; height: 52px; }
}
