/* ==========================================================================
   contact.css — outlet directory, grouped by city

   Rates are company-wide now, so this page is purely "where we are and how to
   reach us": a numbered card per outlet, icon-led detail lines, and two
   actions — directions and WhatsApp.
   ========================================================================== */

.page-head__actions { margin-top: var(--space-5); }

.outlets { padding-block: var(--space-7); }

.city-block + .city-block { margin-top: var(--space-8); }

.city-block__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--space-3);
  font-size: var(--text-xl);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 2px solid var(--color-accent);
}

.city-block__count {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.outlet-grid {
  display: grid;
  gap: var(--space-5);
}

@media (min-width: 640px) {
  .outlet-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .outlet-grid { grid-template-columns: repeat(3, 1fr); }
}

/* --------------------------------------------------------------------------
   Outlet card
   -------------------------------------------------------------------------- */

.outlet-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  background: var(--color-surface-card);
  border: 1px solid var(--color-border);
  /* Accent bar on the inline edge rather than the top: it lines the numbered
     badge up with the spine of the card and survives the 1-column reflow. */
  border-left: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 150ms ease-out, border-color 150ms ease-out;
}

.outlet-card:hover {
  border-color: var(--color-primary);
  border-left-color: var(--color-primary);
  box-shadow: var(--shadow-md, var(--shadow-sm));
}

.outlet-card__head {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

/* Decorative counter — the number carries no meaning beyond "nth in this city",
   so it is aria-hidden in the markup and purely a visual anchor here. */
.outlet-card__index {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-primary-tint);
  color: var(--color-primary-strong);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.outlet-card__name {
  font-size: var(--text-lg);
  margin: 0;
}

.outlet-card__address {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  font-style: normal;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

/* A long outlet name must wrap rather than push the badge off the card. */
.outlet-card__name { min-width: 0; overflow-wrap: anywhere; }

/* --------------------------------------------------------------------------
   Icon-led detail rows
   -------------------------------------------------------------------------- */

.outlet-card__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.outlet-detail {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  color: var(--color-text-muted);
  /* A long address line or email is unbreakable text next to a fixed-width
     icon; without this the card widens past the column on a phone. */
  min-width: 0;
  overflow-wrap: anywhere;
}

.outlet-detail a {
  font-weight: 600;
  color: var(--color-text);
}

.outlet-detail__icon {
  flex: none;
  width: 1rem;
  height: 1rem;
  /* Nudge down so the glyph optically centres on the first line of text. */
  margin-top: 0.15em;
  fill: currentColor;
  color: var(--color-primary);
}

/* --------------------------------------------------------------------------
   Actions
   -------------------------------------------------------------------------- */

.outlet-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.outlet-card__action {
  flex: 1 1 8rem;
}

/* Icons inside a button inherit the button's text colour instead of the brand
   blue they get in the detail rows. */
.outlet-card__action .outlet-detail__icon {
  color: inherit;
  margin-top: 0;
}

/* WhatsApp is the one place a non-brand colour earns its keep — customers scan
   for the green. --success is an existing token (white on it is 5.3:1, AA). */
.outlet-card__action.btn--primary {
  background: var(--success);
  border-color: var(--success);
}

.outlet-card__action.btn--primary:hover {
  background: var(--color-primary-strong);
  border-color: var(--color-primary-strong);
}
