/**
 * Quick Fix Force — Shared components
 * Reusable across templates: section heading, buttons, eyebrow, cards.
 * Class names intentionally mirror the source component names (SectionHeading, Reveal, buttons).
 */

/* ---------- Section heading (source: components/home/SectionHeading.jsx) ---------- */
.qff-section-heading { max-width: 42rem; }
.qff-section-heading--center { margin-left: auto; margin-right: auto; text-align: center; }

.qff-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--qff-action);
  margin-bottom: 1rem;
}
.qff-eyebrow--light { color: var(--qff-white-50); }

.qff-h2 {
  font-family: var(--qff-font-display);
  font-weight: 600;
  color: var(--qff-charcoal);
  font-size: 30px;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.qff-h2--light { color: var(--qff-white); }
@media (min-width: 640px) { .qff-h2 { font-size: 36px; } }
@media (min-width: 1024px) { .qff-h2 { font-size: 44px; } }

.qff-subtitle {
  margin-top: 1.25rem;
  font-size: 16px;
  line-height: 1.7;
  color: var(--qff-charcoal-60);
}
.qff-subtitle--light { color: var(--qff-white-70); }
@media (min-width: 640px) { .qff-subtitle { font-size: 18px; } }

/* ---------- Buttons ---------- */
.qff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 1rem 1.75rem;
  border-radius: var(--qff-radius-sm);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.qff-btn svg { width: 1rem; height: 1rem; transition: transform 0.3s ease; }
.qff-btn:hover svg.qff-btn-arrow { transform: translateX(4px); }

.qff-btn--primary { background: var(--qff-action-hover); color: #fff; }
.qff-btn--primary:hover { background: #b20d18; }

.qff-btn--outline { border: 1px solid var(--qff-navy-25); color: var(--qff-navy); background: transparent; }
.qff-btn--outline:hover { border-color: var(--qff-navy); background: var(--qff-navy-05); }

.qff-btn--outline-light { border: 1px solid var(--qff-white-40); color: #fff; background: transparent; }
.qff-btn--outline-light:hover { background: var(--qff-white-05); }

.qff-btn--block { width: 100%; }
@media (min-width: 640px) { .qff-btn--block { width: auto; } }
.qff-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Icon helpers ---------- */
/* Default size is a safety net: qff_icon() outputs a viewBox-only <svg> with
   no width/height attribute, so any usage context that forgets to size it
   explicitly (a more specific selector always wins) would otherwise fall
   back to the browser's ~300px default SVG size and break mobile layout
   (found via a horizontal-scroll report — .qff-faq__item summary .qff-icon
   and .qff-area-chip .qff-icon were both missing their own width/height). */
.qff-icon { display: inline-block; flex-shrink: 0; width: 20px; height: 20px; }
.qff-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  flex-shrink: 0;
}

/* ---------- Corner accent (source: absolute border corners on hero/service images) ---------- */
.qff-corner-frame { position: relative; overflow: hidden; border-radius: var(--qff-radius-sm); }
.qff-corner {
  position: absolute;
  width: 2rem;
  height: 2rem;
  border-color: var(--qff-action);
  pointer-events: none;
}
.qff-corner--tl { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.qff-corner--br { bottom: 0; right: 0; border-bottom: 2px solid; border-right: 2px solid; }

/* ---------- Live pulse dot (source: Hero "Specialist Teams Available") ---------- */
.qff-pulse { position: relative; display: inline-flex; height: 10px; width: 10px; }
.qff-pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--qff-action);
  opacity: 0.6;
  animation: qff-ping 1.6s cubic-bezier(0, 0, 0.2, 1) infinite;
}
.qff-pulse::after {
  content: "";
  position: relative;
  display: inline-flex;
  border-radius: 9999px;
  height: 10px; width: 10px;
  background: var(--qff-action);
}
@keyframes qff-ping {
  75%, 100% { transform: scale(2.2); opacity: 0; }
}

/* ---------- Generic responsive image wrapper ---------- */
.qff-img { position: relative; display: block; width: 100%; height: auto; object-fit: cover; }
.qff-img-wrap { position: relative; overflow: hidden; }

/* ---------- FAQ accordion (native <details>, used across service/area/guide pages) ---------- */
.qff-faq { border-top: 1px solid var(--qff-navy-10); }
.qff-faq__item { border-bottom: 1px solid var(--qff-navy-10); }
.qff-faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 0;
  font-family: var(--qff-font-display);
  font-weight: 600;
  font-size: 16px;
  color: var(--qff-charcoal);
  cursor: pointer;
  list-style: none;
}
.qff-faq__item summary::-webkit-details-marker { display: none; }
.qff-faq__item summary .qff-icon { transition: transform 0.25s ease; color: var(--qff-navy); }
.qff-faq__item[open] summary .qff-icon { transform: rotate(180deg); }
.qff-faq__item p { padding-bottom: 1.25rem; color: var(--qff-charcoal-60); line-height: 1.7; font-size: 15px; }
