/**
 * Quick Fix Force — Our Work (qff_project CPT) archive + single.
 * Source: src/pages/OurWork.jsx, src/pages/ProjectCaseStudy.jsx,
 * src/components/work/ProjectGrid.jsx, src/components/work/ProjectDetail.jsx.
 *
 * Only styles NOT already covered by qff-shared-blocks.css / qff-base.css
 * live here (page hero, cost list, service link cards, FAQ, CTA band, area
 * chips and .qff-project-card's base look are already sitewide — this file
 * is the filter bar, the grid-specific card footer, and every case-study-only
 * layout piece).
 *
 * @package QuickFixForce
 */

/* ===== Archive: service filter bar (source: ProjectGrid.jsx button row) ===== */
.qff-project-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 2.5rem;
}
.qff-project-filter {
	font-size: 13.5px;
	font-weight: 600;
	padding: 0.625rem 1rem;
	border-radius: var(--qff-radius-sm);
	border: 1px solid var(--qff-navy-15);
	background: #fff;
	color: var(--qff-charcoal-70);
	min-height: 44px;
	transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}
.qff-project-filter:hover { border-color: var(--qff-navy-25); }
.qff-project-filter.is-active,
.qff-project-filter[aria-pressed="true"] {
	background: var(--qff-navy);
	color: #fff;
	border-color: var(--qff-navy);
}

/* ===== Archive: card grid (extends the sitewide .qff-project-card look with
   the archive's fuller card body: eyebrow, summary, footer meta row) ===== */
.qff-project-archive-grid {
	margin-top: 2rem;
	display: grid;
	gap: 1.25rem;
}
@media (min-width: 640px) { .qff-project-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; } }
@media (min-width: 1024px) { .qff-project-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; } }

.qff-project-card--full {
	height: 100%;
	display: flex;
	flex-direction: column;
	border: 1px solid var(--qff-navy-10);
	border-radius: var(--qff-radius-sm);
	overflow: hidden;
}
.qff-project-card--full .qff-project-card__img { display: block; overflow: hidden; }
.qff-project-card--full .qff-project-card__img img {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.5s ease;
}
.qff-project-card--full:hover .qff-project-card__img img { transform: scale(1.04); }
.qff-project-card--full__body { display: flex; flex-direction: column; flex: 1; padding: 1.25rem; }
@media (min-width: 640px) { .qff-project-card--full__body { padding: 1.5rem; } }
.qff-project-card--full__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--qff-action); }
.qff-project-card--full__title { margin-top: 0.625rem; font-family: var(--qff-font-display); font-weight: 600; color: var(--qff-charcoal); font-size: 17px; line-height: 1.3; letter-spacing: -0.01em; }
.qff-project-card--full__title a:hover { color: var(--qff-navy); }
.qff-project-card--full__summary { margin-top: 0.625rem; font-size: 14.5px; color: var(--qff-charcoal-60); line-height: 1.6; flex: 1; }
.qff-project-card--full__footer { margin-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; }
.qff-project-card--full__area { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 13px; color: var(--qff-charcoal-45); }
.qff-project-card--full__area svg { width: 0.875rem; height: 0.875rem; flex-shrink: 0; }
.qff-project-card--full__link { display: inline-flex; align-items: center; gap: 0.375rem; font-size: 14px; font-weight: 600; color: var(--qff-navy); transition: color 0.2s ease; }
.qff-project-card--full__link:hover { color: var(--qff-action); }
.qff-project-card--full__link svg { width: 1rem; height: 1rem; transition: transform 0.3s ease; }
.qff-project-card--full__link:hover svg { transform: translate(0.125rem, -0.125rem); }

/* When JS filtering hides a card. */
.qff-project-card--full.is-hidden { display: none; }

/* ===== Single case study: header ===== */
.qff-case-hero { padding-top: var(--qff-header-height); background: #fff; }
.qff-case-hero__inner { max-width: 48rem; padding-top: 1.5rem; padding-bottom: 2.5rem; }
@media (min-width: 640px) { .qff-case-hero__inner { padding-top: 3.5rem; padding-bottom: 3.5rem; } }
.qff-case-hero__eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.25em; text-transform: uppercase; color: var(--qff-action); margin-bottom: 1.25rem; }
.qff-case-hero__title { font-family: var(--qff-font-display); font-weight: 600; color: var(--qff-charcoal); font-size: 30px; line-height: 1.12; letter-spacing: -0.02em; }
@media (min-width: 640px) { .qff-case-hero__title { font-size: 42px; } }
.qff-case-hero__summary { margin-top: 1.25rem; font-size: 16px; color: var(--qff-charcoal-65); line-height: 1.7; }
@media (min-width: 640px) { .qff-case-hero__summary { font-size: 17px; } }

/* ===== Single case study: meta row + framed image ===== */
.qff-case-meta { display: flex; flex-wrap: wrap; column-gap: 1.5rem; row-gap: 0.625rem; margin-bottom: 1.75rem; }
.qff-case-meta__item { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 13.5px; font-weight: 500; color: var(--qff-charcoal-60); }
.qff-case-meta__item svg { width: 1rem; height: 1rem; color: var(--qff-action); flex-shrink: 0; }
.qff-case-meta__item a:hover { color: var(--qff-navy); }

.qff-case-frame { position: relative; overflow: hidden; border-radius: var(--qff-radius-sm); }
.qff-case-frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
@media (min-width: 640px) { .qff-case-frame img { aspect-ratio: 2 / 1; } }
.qff-case-frame::before,
.qff-case-frame::after {
	content: "";
	position: absolute;
	height: 2rem;
	width: 2rem;
	pointer-events: none;
}
.qff-case-frame::before { top: 0; left: 0; border-top: 2px solid var(--qff-action); border-left: 2px solid var(--qff-action); }
.qff-case-frame::after { bottom: 0; right: 0; border-bottom: 2px solid var(--qff-action); border-right: 2px solid var(--qff-action); }

/* ===== Single case study: problem/diagnosis/work/materials/result blocks ===== */
.qff-case-blocks { max-width: 48rem; display: flex; flex-direction: column; gap: 1.25rem; }
.qff-case-block { border: 1px solid var(--qff-navy-10); border-radius: var(--qff-radius-sm); padding: 1.5rem; }
@media (min-width: 640px) { .qff-case-block { padding: 1.75rem; } }
.qff-case-block h2 { font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--qff-action); }
.qff-case-block p { margin-top: 0.75rem; font-size: 16px; color: var(--qff-charcoal-70); line-height: 1.7; }
.qff-case-disclaimer { font-size: 13.5px; color: var(--qff-charcoal-45); line-height: 1.7; }

/* ===== Single case study: "More of our work" related grid ===== */
.qff-case-related { background: #fff; padding-top: 3.5rem; padding-bottom: 3.5rem; }
@media (min-width: 640px) { .qff-case-related { padding-top: 5rem; padding-bottom: 5rem; } }
.qff-case-related h2 { font-family: var(--qff-font-display); font-weight: 600; color: var(--qff-charcoal); font-size: 24px; letter-spacing: -0.02em; }
@media (min-width: 640px) { .qff-case-related h2 { font-size: 30px; } }
.qff-case-related__grid { margin-top: 1.75rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .qff-case-related__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.qff-case-related__card { display: block; height: 100%; border: 1px solid var(--qff-navy-10); border-radius: var(--qff-radius-sm); padding: 1.25rem; transition: border-color 0.2s ease; }
.qff-case-related__card:hover { border-color: var(--qff-navy-25); }
.qff-case-related__eyebrow { display: block; font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--qff-action); }
.qff-case-related__title { display: block; margin-top: 0.5rem; font-family: var(--qff-font-display); font-weight: 600; color: var(--qff-charcoal); font-size: 15.5px; line-height: 1.3; letter-spacing: -0.01em; }
.qff-case-related__area-link { margin-top: 1.75rem; display: inline-flex; align-items: center; gap: 0.375rem; font-size: 14.5px; font-weight: 600; color: var(--qff-navy); transition: color 0.2s ease; }
.qff-case-related__area-link:hover { color: var(--qff-action); }
.qff-case-related__area-link svg { width: 1rem; height: 1rem; }
