/**
 * Quick Fix Force — Areas directory + Area detail pages
 * Source: src/pages/Areas.jsx, src/pages/AreaPage.jsx,
 *         src/components/areas/AreaGroupedIndex.jsx, AreaDetail.jsx.
 *
 * Reuses sitewide primitives from qff-base.css / qff-shared-blocks.css
 * (.qff-container, .qff-reveal, .qff-section--*, .qff-section-compact,
 * .qff-h3-band, .qff-area-chips/.qff-area-chip, .qff-cost-list visual
 * language) — only rules genuinely not covered there live here.
 */

/* =========================================================================
 * Areas directory (archive-qff_area.php) — source: Areas.jsx +
 * AreaGroupedIndex.jsx's card. The source groups areas by region
 * (areaGroups.js); that grouping data was intentionally not ported this
 * session (see inc/data-areas.php header comment), so this is a single flat
 * grid of the same card design rather than the grouped sections.
 * ===================================================================== */
.qff-area-grid {
  margin-top: 2.25rem;
  display: grid;
  gap: 1rem;
}
@media (min-width: 640px) {
  .qff-area-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .qff-area-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
}

.qff-area-card {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
  background: #fff;
  border: 1px solid var(--qff-navy-10);
  border-radius: var(--qff-radius-sm);
  padding: 1.25rem;
  transition: border-color 0.2s ease;
}
.qff-area-card:hover { border-color: var(--qff-navy-25); }
.qff-area-card__name {
  display: block;
  font-family: var(--qff-font-display);
  font-weight: 600;
  color: var(--qff-charcoal);
  font-size: 16px;
  letter-spacing: -0.01em;
}
.qff-area-card__meta {
  display: block;
  margin-top: 0.375rem;
  font-size: 13.5px;
  color: var(--qff-charcoal-55);
  line-height: 1.6;
}
.qff-area-card svg {
  width: 1rem;
  height: 1rem;
  color: var(--qff-navy);
  flex-shrink: 0;
  margin-top: 0.25rem;
  transition: transform 0.3s ease;
}
.qff-area-card:hover svg { transform: translate(1px, -1px); }

/* =========================================================================
 * Area detail (single-qff_area.php) — source: AreaPage.jsx / AreaDetail.jsx
 * ===================================================================== */

/* "Maintenance in {area}: what's different here" intro — source uses
 * `bg-white pb-14 sm:pb-20` (no top padding: it sits right under PageHero,
 * which already carries its own bottom padding) with the same border-left
 * accent language as .qff-quick-answer__inner. */
.qff-area-intro-section { padding-bottom: 3.5rem; }
@media (min-width: 640px) { .qff-area-intro-section { padding-bottom: 5rem; } }
.qff-area-intro {
  max-width: 48rem;
  border-left: 2px solid var(--qff-action);
  padding-left: 1.25rem;
}
@media (min-width: 640px) { .qff-area-intro { padding-left: 2rem; } }
.qff-area-intro h2 {
  font-family: var(--qff-font-display);
  font-weight: 600;
  color: var(--qff-charcoal);
  font-size: 20px;
  letter-spacing: -0.01em;
}
@media (min-width: 640px) { .qff-area-intro h2 { font-size: 24px; } }
.qff-area-intro p {
  margin-top: 1rem;
  font-size: 16px;
  color: var(--qff-charcoal-70);
  line-height: 1.7;
}
@media (min-width: 640px) { .qff-area-intro p { font-size: 17px; } }

/* Property types / Access & permits cards — source: `grid lg:grid-cols-3
 * gap-5 sm:gap-6`, card `bg-white rounded-sm p-6`. This build only has data
 * for 2 of the source's 3 cards (no `context` / "local routing" field in
 * the ported area schema — see inc/data-areas.php), so the grid auto-fits
 * 2–3 cards rather than hard-coding 3 columns. */
.qff-area-info-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 640px) {
  .qff-area-info-grid { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1.5rem; }
}
.qff-area-info-card {
  background: #fff;
  border-radius: var(--qff-radius-sm);
  padding: 1.5rem;
  height: 100%;
}
.qff-area-info-card svg { width: 1.25rem; height: 1.25rem; color: var(--qff-action); margin-bottom: 1rem; }
.qff-area-info-card h3 {
  font-family: var(--qff-font-display);
  font-weight: 600;
  color: var(--qff-charcoal);
  font-size: 17px;
  letter-spacing: -0.01em;
}
.qff-area-info-card p {
  margin-top: 0.5rem;
  font-size: 15px;
  color: var(--qff-charcoal-60);
  line-height: 1.7;
}

/* "What we're called out for most in {area}" — source: `mt-5 space-y-3.5
 * max-w-3xl` single-column list (deliberately NOT the 2-column
 * .qff-cost-list grid used by CostDrivers.jsx — the Tailwind classes
 * differ: no sm:grid-cols-2 here, and item spacing/type size are slightly
 * larger — space-y-3.5 vs cost-list's gap-y-2, text-[15.5px] vs 15px, h-5
 * w-5 icon vs h-4 w-4). Same icon+text row *pattern*, new single-column
 * rule set to match the source exactly. */
.qff-area-needs-heading {
  margin-top: 2.5rem;
  font-family: var(--qff-font-display);
  font-weight: 600;
  color: var(--qff-charcoal);
  font-size: 20px;
  letter-spacing: -0.01em;
}
.qff-area-needs-list {
  margin-top: 1.25rem;
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}
.qff-area-needs-list li { display: flex; gap: 0.75rem; }
.qff-area-needs-list svg { width: 1.25rem; height: 1.25rem; color: var(--qff-action); flex-shrink: 0; margin-top: 2px; }
.qff-area-needs-list span { font-size: 15.5px; color: var(--qff-charcoal-70); line-height: 1.7; }
