/* ============================================================
   FOURWAYS PLUMBER — LOCATION PAGES STYLESHEET
   Loaded on all page-plumber-*.php templates.
   Builds on top of service-pages.css (required dependency).
============================================================ */

/* ─── LOCATION INTRO BLOCK ───────────────────────────────── */
.loc-intro {
  font-size: 1rem;
  color: var(--text-body);
  line-height: 1.8;
}

.loc-intro strong { color: var(--charcoal); }

.loc-stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.loc-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--off-white);
  border: 1px solid var(--border-grey);
  border-radius: var(--r-pill);
  padding: 0.4rem 0.85rem;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--charcoal);
}
.loc-stat i { color: var(--red); font-size: 0.8rem; }

/* ─── WHY CHOOSE US (location version — light bg) ────────── */
.loc-why-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 0.5rem;
}

.loc-why-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--off-white);
  border-radius: var(--r-md);
  border-left: 3px solid var(--red);
  transition: background var(--t), border-color var(--t);
}
.loc-why-item:hover { background: var(--red-bg); }

.loc-why-item__icon {
  width: 36px;
  height: 36px;
  background: var(--red-bg);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.loc-why-item__text {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: break-word;
}
.loc-why-item__text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.15rem;
  overflow-wrap: break-word;
}
.loc-why-item__text span {
  font-size: 0.84rem;
  color: var(--text-light);
  line-height: 1.55;
  display: block;
}

/* ─── SERVICES MINI-GRID ─────────────────────────────────── */
.loc-services-grid {
  display: grid;
  grid-template-columns: 1fr;          /* single column on small phones */
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.loc-service-card {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--off-white);
  border: 1.5px solid var(--border-grey);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all var(--t);
  min-width: 0;           /* allow grid cell to shrink below content width */
  box-sizing: border-box;
  overflow: hidden;
}
.loc-service-card:hover {
  border-color: var(--red);
  background: var(--red-bg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.loc-service-card__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  background: var(--red-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.loc-service-card:hover .loc-service-card__icon {
  background: var(--red);
  color: var(--white);
}

.loc-service-card__label {
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.3;
  transition: color var(--t);
  overflow-wrap: break-word;
  word-break: break-word;
  min-width: 0;
}
.loc-service-card:hover .loc-service-card__label { color: var(--red); }

/* ─── LOCATION TESTIMONIAL ───────────────────────────────── */
.loc-testimonial {
  background: var(--charcoal);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
}

.loc-testimonial::before {
  content: '\201C';
  position: absolute;
  top: -10px;
  left: 16px;
  font-size: 7rem;
  line-height: 1;
  font-family: Georgia, serif;
  color: rgba(227,27,35,0.15);
  pointer-events: none;
}

.loc-testimonial__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 0.85rem;
}
.loc-testimonial__stars i { color: #f59e0b; font-size: 0.9rem; }

.loc-testimonial__text {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
}

.loc-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.loc-testimonial__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--white);
  flex-shrink: 0;
}

.loc-testimonial__info strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
}
.loc-testimonial__info span {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.loc-testimonial__info span i { color: var(--red); font-size: 0.7rem; }

.loc-testimonial__source {
  margin-left: auto;
  color: #4285f4;
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ─── SIDEBAR AREAS NAV ──────────────────────────────────── */
/* Reuses .sidebar-services-nav from service-pages.css */

/* ─── LOCATION MAP PLACEHOLDER (optional) ────────────────── */
.loc-map-placeholder {
  background: var(--light-grey);
  border-radius: var(--r-lg);
  aspect-ratio: 16 / 7;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--mid-grey);
  font-family: var(--font-head);
  font-size: 0.85rem;
  font-weight: 600;
  border: 2px dashed var(--border-grey);
  margin-top: 0.5rem;
}
.loc-map-placeholder i { font-size: 2rem; color: var(--red); opacity: 0.5; }

/* ─── RESPONSIVE ─────────────────────────────────────────── */

/* 480 px — 2-column service cards (typical mid-size phone) */
@media (min-width: 480px) {
  .loc-services-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 600 px — 3-column service cards, tweak 5th item alignment */
@media (min-width: 600px) {
  .loc-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .loc-service-card:nth-child(4) {
    grid-column: auto;   /* reset: let grid place it naturally */
  }
}

/* 900 px — keep 3 columns, loc-stat-row has more breathing room */
@media (min-width: 900px) {
  .loc-services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ─── SMALL PHONE SAFETY NET (< 400 px) ─────────────────── */
@media (max-width: 399px) {
  /* Ensure service cards are single-column and fully contained */
  .loc-services-grid {
    grid-template-columns: 1fr;
  }

  /* Reduce hero font for very small screens */
  .service-hero__title {
    font-size: 1.5rem;
  }

  /* Stat pills wrap gracefully */
  .loc-stat {
    font-size: 0.72rem;
    padding: 0.35rem 0.65rem;
  }

  /* Why-list items: tighter gap */
  .loc-why-item {
    gap: 0.65rem;
    padding: 0.75rem;
  }

  /* Testimonial: smaller quote mark so it doesn't push content */
  .loc-testimonial::before {
    font-size: 5rem;
  }
  .loc-testimonial__text {
    font-size: 0.9rem;
  }
}
