/* Home-page content sections: how it works, why us, reviews, FAQ, call strip.
   Reviews are filled by scripts/home-content.js from content/reviews.json. */
#reviews[hidden], .afg-reviews-more[hidden], .afg-reviews-summary[hidden] { display: none !important; }
.afg-h2 { color: rgba(255, 255, 255, 0.75); text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); }
.afg-card {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.afg-card:hover { border-color: rgba(230, 0, 35, 0.45); transform: translateY(-3px); }
.afg-card-title {
  font: italic 800 19px/1.25 'AFG Sans', 'Inter', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.afg-card-text { margin-top: 8px; color: #cfc4c5; font-size: 15px; line-height: 1.6; }
.afg-icon-red { color: #ff4d5e; }

/* Cards fade up as they scroll in (only when JS is running) */
.js .afg-reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .afg-reveal.in { opacity: 1; transform: none; }

/* ---- How it works ---- */
.afg-steps { display: grid; gap: 16px; }
@media (min-width: 768px) { .afg-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
.afg-step { padding: 28px 24px 26px; overflow: hidden; }
.afg-step-num {
  position: absolute;
  top: 8px;
  right: 16px;
  font: italic 800 72px/1 'AFG Sans', 'Inter', sans-serif;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(230, 0, 35, 0.55);
  pointer-events: none;
}
.afg-step-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin-bottom: 18px;
  border-radius: 999px;
  color: #ff4d5e;
  background: rgba(230, 0, 35, 0.14);
  border: 1px solid rgba(230, 0, 35, 0.35);
}
.afg-step-icon .material-symbols-outlined { font-size: 28px; }

.afg-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  padding: 6px 9px;
  border-radius: 3px;
  font: italic 800 10px/1 'AFG Sans', 'Inter', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #141414;
  background: #ffd24d;
}
/* ---- Why AUTO FLEX ---- */
.afg-why { display: grid; gap: 16px; }
@media (min-width: 640px) { .afg-why { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .afg-why { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.afg-why-item { padding: 26px 22px; }
.afg-why-item > .material-symbols-outlined { display: block; margin-bottom: 14px; font-size: 34px; color: #ff4d5e; }

/* ---- Reviews ---- */
/* flex so an odd last row (e.g. 3 + 2) stays centred */
.afg-reviews-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.afg-reviews-grid > * { flex: 1 1 100%; }
@media (min-width: 768px) {
  .afg-reviews-grid { gap: 24px; }
  .afg-reviews-grid > * { flex: 0 1 calc((100% - 24px) / 2); }
}
@media (min-width: 1024px) { .afg-reviews-grid > * { flex-basis: calc((100% - 48px) / 3); } }
.afg-reviews-summary { margin-top: 14px; color: #cfc4c5; font-size: 15px; letter-spacing: 0.04em; }
.afg-reviews-summary .afg-stars { font-size: 16px; margin-right: 6px; }
.afg-g-icon { display: inline-block; width: 11px; height: 11px; margin: -2px 6px 0 0; vertical-align: middle; }
.afg-review { display: flex; flex-direction: column; padding: 26px 24px 22px; overflow: hidden; }
.afg-review::after {
  content: '\201D';
  position: absolute;
  right: 16px;
  bottom: -62px;
  font: normal 700 150px/1 Georgia, 'Times New Roman', serif;
  color: rgba(230, 0, 35, 0.14);
  pointer-events: none;
}
.afg-review .afg-badge { left: auto; right: 14px; top: 14px; }
.afg-stars { font-style: normal; font-size: 18px; letter-spacing: 3px; color: #E60023; }
.afg-stars .off { color: rgba(255, 255, 255, 0.18); }
.afg-review blockquote { margin: 14px 0 20px; font-size: 16px; line-height: 1.65; color: #e2e2e2; }
.afg-review-who {
  margin-top: auto;
  font: italic 800 13px/1.3 'AFG Sans', 'Inter', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.afg-review-who small { display: block; margin-top: 4px; font-size: 11px; letter-spacing: 0.1em; color: #a89ea0; }

/* ---- FAQ ---- */
.afg-faq { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.afg-faq details {
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.afg-faq details[open] { border-color: rgba(230, 0, 35, 0.45); background: rgba(230, 0, 35, 0.05); }
.afg-faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  font: italic 800 15px/1.35 'AFG Sans', 'Inter', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}
.afg-faq summary::-webkit-details-marker { display: none; }
.afg-faq summary:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 8px; }
.afg-faq summary .material-symbols-outlined { flex-shrink: 0; color: #ff4d5e; transition: transform 0.25s ease; }
.afg-faq details[open] summary .material-symbols-outlined { transform: rotate(45deg); }
.afg-faq-answer { padding: 0 20px 20px; font-size: 15px; line-height: 1.7; color: #cfc4c5; }
.afg-faq-answer a { color: #fff; text-decoration: underline; text-decoration-color: rgba(230, 0, 35, 0.8); text-underline-offset: 3px; }

/* ---- Call strip ---- */
.afg-cta-phone {
  display: inline-block;
  font: italic 800 clamp(40px, 7vw, 76px)/1 'AFG Sans', 'Inter', sans-serif;
  letter-spacing: 0.02em;
  color: #fff;
  text-shadow: 0 4px 30px rgba(230, 0, 35, 0.35);
  transition: color 0.2s ease;
}
.afg-cta-phone:hover { color: #ff4d5e; }
.afg-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 4px;
  font: italic 800 18px/1 'AFG Sans', 'Inter', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.3);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.afg-btn-outline:hover { border-color: rgba(230, 0, 35, 0.7); background: rgba(230, 0, 35, 0.15); }
.afg-cta-actions .glass-btn { gap: 10px; }
.afg-wa-icon { width: 20px; height: 20px; flex-shrink: 0; }
.glass-btn .material-symbols-outlined,
.afg-btn-outline .material-symbols-outlined { font-size: 22px; letter-spacing: 0; }
@media (max-width: 640px) {
  .afg-btn-outline { font-size: 15px; padding: 12px 22px; letter-spacing: 0.1em; }
  .afg-cta-actions > * { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .js .afg-reveal { opacity: 1; transform: none; transition: none; }
  .afg-card, .afg-card:hover { transform: none; }
}
