/* 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 '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 '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 '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 '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 '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 '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 '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; }
}

/* ---- Phones: compact cards (icon beside the text) and swipeable reviews, so the page is shorter ---- */
@media (max-width: 767px) {
  .afg-step { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 18px 16px; }
  .afg-step-icon { grid-row: span 2; width: 46px; height: 46px; margin: 0; }
  .afg-step-icon .material-symbols-outlined { font-size: 24px; }
  .afg-step-num { top: 6px; right: 12px; font-size: 44px; }
  .afg-step .afg-card-title { padding-right: 52px; }
  .afg-steps, .afg-why { gap: 10px; }
  .afg-card-title { font-size: 17px; }
  .afg-card-text { margin-top: 4px; font-size: 14px; line-height: 1.5; }

  .afg-reviews-grid {
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 12px;
    margin: 0 -16px;
    padding: 2px 16px 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .afg-reviews-grid::-webkit-scrollbar { display: none; }
  .afg-reviews-grid > * { flex: 0 0 86%; scroll-snap-align: center; }
  .afg-review { padding: 20px 18px 18px; }
  .afg-review blockquote { margin: 10px 0 14px; font-size: 15px; line-height: 1.55; }
  .afg-faq summary { padding: 15px 16px; }
}
@media (max-width: 639px) {
  .afg-why-item { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 16px; }
  .afg-why-item > .material-symbols-outlined { grid-row: span 2; margin: 2px 0 0; font-size: 28px; }
}

/* ---- Side panel: links to this page's sections, the current one highlighted (scripts/section-nav.js).
   Laptops: a slim glass rail of dots, names show on hover and briefly when a new section is reached.
   Wide screens (room in the margin): a glass panel with the names. Phones: thin rail on the right edge. ---- */
.afg-sidenav {
  position: fixed;
  top: 50%;
  left: 10px;
  z-index: 45;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 6px;
  border-radius: 999px;
  background: rgba(18, 20, 20, 0.5);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
          backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 30px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transform: translate(-12px, -50%);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.afg-sidenav.show { opacity: 1; pointer-events: auto; transform: translate(0, -50%); }
.afg-sidenav a {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 24px;
  text-decoration: none;
}
.afg-sidenav a[hidden] { display: none; }
.afg-sidenav-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  transition: height 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
}
.afg-sidenav a:hover .afg-sidenav-dot { background: rgba(255, 255, 255, 0.75); }
.afg-sidenav a.active .afg-sidenav-dot { height: 22px; background: #E60023; box-shadow: 0 0 12px rgba(230, 0, 35, 0.7); }
.afg-sidenav-label {
  position: absolute;
  left: calc(100% + 14px);
  top: 50%;
  padding: 8px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font: italic 800 11px/1 'Inter', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(18, 20, 20, 0.78);
  -webkit-backdrop-filter: blur(12px);
          backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  pointer-events: none;
  transform: translate(-6px, -50%);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.afg-sidenav a.active .afg-sidenav-label { border-color: rgba(230, 0, 35, 0.6); }
.afg-sidenav a:hover .afg-sidenav-label,
.afg-sidenav a:focus-visible .afg-sidenav-label,
.afg-sidenav.announce a.active .afg-sidenav-label { opacity: 1; transform: translate(0, -50%); }
.afg-sidenav a:focus-visible { outline: none; }
.afg-sidenav a:focus-visible .afg-sidenav-dot { outline: 2px solid #fff; outline-offset: 3px; }

/* wide screens: the margin has room for the names, so show the full panel */
@media (min-width: 1536px) {
  .afg-sidenav { left: 20px; gap: 2px; padding: 10px; border-radius: 14px; }
  .afg-sidenav a { width: auto; height: auto; justify-content: flex-start; gap: 12px; padding: 10px 16px 10px 12px; border-radius: 9px; transition: background 0.25s ease; }
  .afg-sidenav a:hover { background: rgba(255, 255, 255, 0.05); }
  .afg-sidenav a.active { background: rgba(230, 0, 35, 0.32); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22); }
  .afg-sidenav a.active .afg-sidenav-dot { height: 8px; background: #fff; box-shadow: 0 0 10px rgba(255, 255, 255, 0.8); }
  .afg-sidenav-label { position: static; padding: 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none;
    opacity: 1; transform: none; color: #a9a0a1; font-size: 12px; transition: color 0.25s ease; }
  .afg-sidenav a:hover .afg-sidenav-label, .afg-sidenav a.active .afg-sidenav-label,
  .afg-sidenav.announce a.active .afg-sidenav-label, .afg-sidenav a:focus-visible .afg-sidenav-label { color: #fff; transform: none; }
}

/* phones: a thin rail in the right-hand margin, names pop out to the left */
@media (max-width: 767px) {
  .afg-sidenav { left: auto; right: 2px; padding: 8px 3px; transform: translate(12px, -50%); }
  .afg-sidenav.show { transform: translate(0, -50%); }
  .afg-sidenav a { width: 14px; height: 20px; }
  .afg-sidenav-dot { width: 6px; height: 6px; }
  .afg-sidenav a.active .afg-sidenav-dot { height: 18px; }
  .afg-sidenav-label { left: auto; right: calc(100% + 10px); transform: translate(6px, -50%); }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
