/* ==========================================================================
   areas.css â€" Areas We Serve page (/areas/index.html)
   ─────────────────────────────────────────────────────────────────────────────
   Section 1: .ar-hero      â€" eyebrow pill, h1, body, 3 stat pills, CTA
   Section 2: .ar-locs      â€" filter tabs + 50-state grid + USA map
   Section 3: .ar-ind       â€" Industries grid (14 cards, 2 cols, mint bg)
   Section 4: .wu-contact   â€" reuses Why Us form (no styles here)
   ============================================================================ */

/* ── Shared pill (used by hero + industries) ───────── */
.ar-pill {
  display: inline-block;
  padding: 6px 16px;
  background: #d1fae5;
  color: #0d9488;
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-bottom: 18px;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION 1 â€" HERO
══════════════════════════════════════════════════════════════════════════ */
.ar-hero {
  background: linear-gradient(135deg, #eefaf8 0%, #f4f0ff 100%);
  padding: calc(var(--nav-height, 88px) + 56px) 0 80px;
  text-align: center;
}
.ar-hero .container { display: flex; flex-direction: column; align-items: center; }
.ar-hero__h1 {
  font-family: var(--font-family);
  font-size: clamp(2.2rem, 5.5vw, 4.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--clr-text-1, #0f172a);
  text-transform: uppercase;
  margin: 0 0 20px 0;
}
.ar-hero__body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--clr-text-3, #64748b);
  max-width: 720px;
  margin: 0 0 32px 0;
}

.ar-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 0 0 32px 0;
  justify-content: center;
}
.ar-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 24px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.ar-stat__num {
  font-family: var(--font-family);
  font-size: 22px;
  font-weight: 900;
  color: var(--clr-primary, #0d9488);
  line-height: 1;
}
.ar-stat__lbl {
  font-family: var(--font-family);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--clr-text-1, #0f172a);
  text-transform: uppercase;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION 2 â€" LOCATIONS WE SERVE (50-state grid + map)
══════════════════════════════════════════════════════════════════════════ */
.ar-locs {
  background: #ffffff;
  padding: 80px 0;
}
.ar-locs__h2 {
  font-family: var(--font-family);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--clr-text-1, #0f172a);
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 12px 0;
}
.ar-locs__intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--clr-text-3, #64748b);
  text-align: center;
  max-width: 560px;
  margin: 0 auto 40px;
}

.ar-locs__card {
  background: #f4fbf8;
  border: 1px solid #d1fae5;
  border-radius: 16px;
  padding: 24px;
}

/* Search bar */
.ar-search {
  position: relative;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 0 14px;
  margin-bottom: 14px;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}
.ar-search:focus-within {
  border-color: var(--clr-primary, #0d9488);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.15);
}
.ar-search__icon {
  flex-shrink: 0;
  color: #94a3b8;
  margin-right: 8px;
}
.ar-search:focus-within .ar-search__icon { color: var(--clr-primary, #0d9488); }
.ar-search__input {
  flex: 1 1 auto;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--clr-text-1, #0f172a);
  padding: 11px 0;
  min-width: 0;
}
.ar-search__input::placeholder { color: #94a3b8; }
/* Remove default WebKit search clear */
.ar-search__input::-webkit-search-decoration,
.ar-search__input::-webkit-search-cancel-button,
.ar-search__input::-webkit-search-results-button,
.ar-search__input::-webkit-search-results-decoration { display: none; }
.ar-search__clear {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #e2e8f0;
  color: #475569;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-left: 6px;
  transition: background 150ms ease;
}
.ar-search__clear:hover { background: #cbd5e1; color: #0f172a; }
.ar-search__empty {
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  margin: 8px 0 4px;
}

/* Filter tabs */
.ar-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}
.ar-tab {
  font-family: var(--font-family);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--clr-text-1, #0f172a);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 8px 16px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: background 200ms ease, border-color 200ms ease;
}
.ar-tab:hover { background: #ffffff; border-color: #d1fae5; }
.ar-tab.is-active {
  background: var(--clr-primary, #0d9488);
  color: #ffffff;
  border-color: var(--clr-primary, #0d9488);
}
.ar-tab__count {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.8;
}

/* States grid (5 cols desktop) */
.ar-states {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}
.ar-state {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  font-family: var(--font-family);
  font-size: 13px;
  font-weight: 600;
  color: var(--clr-text-1, #0f172a);
}
/* Filter: override flex when JS sets [hidden] to filter by region */
.ar-state[hidden] { display: none !important; }
/* Clickable state cards (JS adds .ar-state--link) */
.ar-state--link {
  cursor: pointer;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.ar-state--link:hover {
  border-color: var(--clr-primary, #0d9488);
  box-shadow: 0 4px 12px -4px rgba(13,148,136,0.25);
  transform: translateY(-1px);
}
.ar-state--link:focus-visible {
  outline: none;
  border-color: var(--clr-primary, #0d9488);
  box-shadow: 0 0 0 3px rgba(13,148,136,0.25);
}
.ar-state__check {
  color: var(--clr-primary, #0d9488);
  font-weight: 900;
  font-size: 11px;
  flex-shrink: 0;
}
.ar-state__name { flex: 1 1 auto; }
.ar-state__code {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: #f1f5f9;
  border-radius: 4px;
}

.ar-locs__note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--clr-primary, #0d9488);
  font-weight: 700;
  margin: 18px 0 0 auto;
  display: flex;
  justify-content: flex-end;
}
.ar-locs__dot {
  width: 8px;
  height: 8px;
  background: var(--clr-primary, #0d9488);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(13,148,136,0.18);
}

/* USA map - live Leaflet map */
.ar-map {
  position: relative;
  margin-top: 40px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}
#ar-map-live {
  width: 100%;
  height: 460px;
  background: #f8fafc;
}
.ar-map__fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #94a3b8;
  text-align: center;
  pointer-events: none;
  background: #f8fafc;
}
/* Brand-coloured teardrop pin (rendered via L.divIcon) */
.ar-map__pin {
  background: transparent !important;
  border: none !important;
  filter: drop-shadow(0 2px 4px rgba(15,23,42,0.25));
  transition: transform 150ms ease;
}
.ar-map__pin:hover { transform: translateY(-2px) scale(1.08); }
.ar-map__pin svg { display: block; }

/* Leaflet control polish */
.leaflet-container { font-family: var(--font-family); }
.leaflet-popup-content-wrapper {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.18);
}
.leaflet-popup-content { font-size: 12px; margin: 10px 14px; min-width: 140px; }

/* Popup body */
.ar-map__popup { font-family: var(--font-family); }
.ar-map__popup strong {
  display: block;
  font-size: 13px;
  font-weight: 800;
  color: var(--clr-text-1, #0f172a);
  margin-bottom: 4px;
}
.ar-map__popup-status {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--clr-primary, #0d9488);
  background: #d1fae5;
  padding: 3px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.ar-map__popup-cta {
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--clr-primary, #0d9488);
  text-decoration: none;
  border-top: 1px solid #e2e8f0;
  padding-top: 8px;
  margin-top: 4px;
}
.ar-map__popup-cta:hover { color: #0b7c72; text-decoration: underline; }

/* ══════════════════════════════════════════════════════════════════════════
   SECTION 3 â€" INDUSTRIES WE SERVE
══════════════════════════════════════════════════════════════════════════ */
.ar-ind {
  background: #d1f5ec; /* mint per Figma */
  padding: 80px 0;
}
.ar-ind .ar-pill { background: #ffffff; }
.ar-ind__h2 {
  font-family: var(--font-family);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--clr-text-1, #0f172a);
  margin: 0 0 12px 0;
}
.ar-ind__intro {
  font-size: 15px;
  line-height: 1.65;
  color: var(--clr-text-3, #475569);
  max-width: 680px;
  margin: 0 0 36px 0;
}
.ar-ind__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* Industry card */
.ar-icard {
  display: flex;
  gap: 16px;
  padding: 22px 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

/* Link variant — used when a card is clickable (HOSPITALITY → /hospitality.html, etc.) */
a.ar-icard,
.ar-icard--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
a.ar-icard:hover,
.ar-icard--link:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 28px -14px rgba(15,23,42,0.18);
}
a.ar-icard:hover .ar-icard__title,
.ar-icard--link:hover .ar-icard__title { color: var(--clr-primary, #0d9488); }
a.ar-icard:focus-visible,
.ar-icard--link:focus-visible {
  outline: 2px solid var(--clr-primary, #0d9488);
  outline-offset: 2px;
}
.ar-icard__icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ar-icard__icon img { display: block; width: 28px; height: 28px; }
.ar-icard__icon--orange { background: #fed7aa; }
.ar-icard__icon--blue   { background: #dbeafe; }
.ar-icard__icon--mint   { background: #d1fae5; }
.ar-icard__icon--peach  { background: #fee2e2; }
.ar-icard__icon--pink   { background: #fce7f3; }
.ar-icard__icon--purple { background: #ede9fe; }
.ar-icard__icon--yellow { background: #fef3c7; }
.ar-icard__icon--gray   { background: #e5e7eb; }
.ar-icard__icon--red    { background: #fecaca; }

.ar-icard__title {
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--clr-text-1, #0f172a);
  margin: 0 0 6px 0;
}
.ar-icard__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--clr-text-3, #64748b);
  margin: 0;
}

/* ══════════════════════════════════════════════════════════════════════════
   MOBILE
══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 880px) {
  /* Hero — tighten vertical rhythm to match Figma mobile */
  .ar-hero { padding: calc(var(--nav-height, 88px) + 28px) 0 40px; }
  .ar-pill { margin-bottom: 14px; }
  .ar-hero__h1 { margin-bottom: 14px; }
  .ar-hero__body { margin-bottom: 22px; font-size: 14px; line-height: 1.6; }
  .ar-stats { gap: 8px; margin-bottom: 24px; }
  .ar-stat { padding: 9px 14px; gap: 6px; }
  .ar-stat__num { font-size: 17px; }
  .ar-stat__lbl { font-size: 10px; }
  /* Wider, more prominent CTA on mobile to match Figma */
  .ar-hero .wu-btn--teal { padding: 16px 48px; }

  /* Locations — tighter card and grid */
  .ar-locs { padding: 48px 0 40px; }
  .ar-locs__h2 { margin-bottom: 10px; }
  .ar-locs__intro { margin-bottom: 24px; font-size: 14px; }
  .ar-locs__card { padding: 14px; border-radius: 14px; }
  .ar-search { padding: 0 12px; margin-bottom: 12px; }
  .ar-search__input { font-size: 13px; padding: 9px 0; }
  .ar-tabs { gap: 6px; margin-bottom: 14px; }
  .ar-tab { font-size: 11px; padding: 7px 14px; }
  /* Declutter: hide counts on inactive tabs on small screens */
  .ar-tab:not(.is-active) .ar-tab__count { display: none; }

  .ar-states { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .ar-state { padding: 9px 10px; font-size: 12px; gap: 6px; }
  .ar-state__code { padding: 2px 6px; font-size: 10px; }

  .ar-locs__note { justify-content: center; flex-wrap: wrap; margin-top: 14px; }
  .ar-map { margin-top: 24px; border-radius: 14px; }
  #ar-map-live { height: 320px; }

  /* Industries — tighter rhythm + single column */
  .ar-ind { padding: 48px 0; }
  .ar-ind__h2 { margin-bottom: 10px; }
  .ar-ind__intro { margin-bottom: 24px; font-size: 14px; }
  .ar-ind__grid { grid-template-columns: 1fr; gap: 12px; }
  .ar-icard { padding: 18px 18px; gap: 14px; }
  .ar-icard__icon { width: 46px; height: 46px; }
  .ar-icard__icon img { width: 24px; height: 24px; }
}

@media (max-width: 760px) {
  /* Mobile: solid CTA on hero */
  .ar-hero .wu-btn--teal {
    background: var(--clr-primary, #0d9488);
    color: #ffffff;
    border-color: var(--clr-primary, #0d9488);
  }
}
