/*
Theme Name: Angel Funding Group
Theme URI: https://www.angelfundinggroup.com
Author: Angel Funding Group
Description: Custom brand theme for Angel Funding Group — navy and green palette, Outfit display headings, Plus Jakarta Sans body text. Includes a branded homepage hero, page and blog templates, and a call-to-action footer.
Version: 1.6.3
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: angel-funding-group
*/

:root {
  --afg-navy: #10233c;
  --afg-navy-dark: #0b1a2e;
  --afg-green: #23a45c;
  --afg-green-dark: #1c8c4e;
  --afg-blue: #1d5fae;
  --afg-blue-tint: #e7f0f9;
  --afg-text: #24303f;
  --afg-muted: #5b6b7d;
  --afg-bg: #ffffff;
  --afg-bg-soft: #f5f8fb;
  --afg-radius: 12px;
  --afg-font-display: 'Outfit', sans-serif;
  --afg-font-body: 'Plus Jakarta Sans', sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--afg-font-body);
  color: var(--afg-text);
  background: var(--afg-bg);
  line-height: 1.65;
  font-size: 17px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--afg-font-display);
  color: var(--afg-navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

a { color: var(--afg-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

.afg-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.afg-btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--afg-font-display);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none !important;
  transition: background .15s ease, color .15s ease;
}
.afg-btn-primary { background: var(--afg-green); color: #fff !important; }
.afg-btn-primary:hover { background: var(--afg-green-dark); }
.afg-btn-white { background: #fff; color: var(--afg-navy) !important; }
.afg-btn-white:hover { background: #e8edf3; }
.afg-btn-outline-white { background: transparent; color: #fff !important; border: 2px solid rgba(255,255,255,.7); }
.afg-btn-outline-white:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.afg-btn-outline-light {
  background: transparent;
  color: #fff !important;
  border: 2px solid rgba(255,255,255,.4);
  padding: 12px 28px;
}
.afg-btn-outline-light:hover { background: rgba(255,255,255,.12); }

/* Header */
.afg-header {
  background: #fff;
  border-bottom: 1px solid #e4e9ef;
  position: sticky;
  top: 0;
  z-index: 50;
}
.afg-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.afg-logo {
  font-family: var(--afg-font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--afg-navy);
  text-decoration: none !important;
  display: flex;
  align-items: center;
  gap: 10px;
}
.afg-logo img { max-height: 48px; width: auto; }
/* WordPress custom logo (Appearance > Customize > Site Identity) */
.afg-header .custom-logo-link { display: flex; align-items: center; }
.afg-header img.custom-logo { max-height: 64px; width: auto; height: auto; }
@media (max-width: 640px) {
  .afg-header img.custom-logo { max-height: 48px; }
}
.afg-header-cta { display: flex; align-items: center; gap: 18px; }
.afg-header-phone { color: var(--afg-green); font-weight: 700; white-space: nowrap; }
.afg-btn-pill { border-radius: 999px; }

/* Sticky-shrink behaviour */
.afg-header { transition: box-shadow .25s ease, background .25s ease; }
.afg-header.afg-scrolled { box-shadow: 0 6px 20px rgba(16,35,60,.08); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
.afg-header.afg-scrolled .afg-header-inner { padding: 9px 0; }

/* -------- Desktop mega navigation -------- */
.afg-mega-nav { display: flex; align-items: center; }
.afg-mega-list { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.afg-mega-item { position: relative; }
.afg-mega-trigger,
.afg-mega-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; cursor: pointer;
  font-family: var(--afg-font-body);
  color: var(--afg-navy); font-weight: 600; font-size: .96rem;
  text-decoration: none; padding: 10px 12px; border-radius: 8px;
  white-space: nowrap;
}
.afg-mega-trigger:hover,
.afg-mega-link:hover,
.afg-mega-item:hover > .afg-mega-trigger,
.afg-mega-item:focus-within > .afg-mega-trigger { color: var(--afg-green); }
.afg-caret {
  width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transform-origin: center; margin-top: -3px; transition: transform .2s ease;
}
.afg-mega-item:hover .afg-caret,
.afg-mega-item:focus-within .afg-caret { transform: rotate(-135deg); margin-top: 2px; }

.afg-mega-panel {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0;
  background: #fff; border: 1px solid #e4e9ef; border-radius: 16px;
  box-shadow: 0 22px 48px rgba(16,35,60,.16);
  padding: 26px; z-index: 60;
}
.afg-mega-panel-wide { width: 860px; left: -120px; }
.afg-mega-panel-narrow { width: 300px; }
.afg-mega-item:hover > .afg-mega-panel,
.afg-mega-item:focus-within > .afg-mega-panel { display: block; }
/* Hover bridge so the panel doesn't disappear when moving the cursor down */
.afg-has-mega::after { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 10px; }

.afg-mega-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.afg-mega-cols-single { grid-template-columns: 1fr; }
.afg-mega-heading {
  font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--afg-muted); margin: 0 0 12px;
}
.afg-mega-heading-teal { color: var(--afg-green); }
.afg-mega-links { list-style: none; margin: 0; padding: 0; }
.afg-mega-links li { margin: 0; }
.afg-mega-links a {
  display: block; padding: 7px 10px; margin: 0 -10px; border-radius: 8px;
  color: var(--afg-navy); font-weight: 600; font-size: .9rem; text-decoration: none;
}
.afg-mega-links a:hover { background: var(--afg-bg-soft); color: var(--afg-green); }
.afg-mega-sublinks { list-style: none; margin: 2px 0 6px; padding: 0 0 0 12px; border-left: 1px solid #e4e9ef; }
.afg-mega-sublinks a { font-weight: 500; font-size: .86rem; color: var(--afg-muted); padding: 5px 10px; }
.afg-mega-viewall {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 10px;
  font-size: .78rem; font-weight: 800; color: var(--afg-green); text-decoration: none;
}
.afg-mega-viewall:hover { text-decoration: underline; }
.afg-mega-viewall-teal { color: var(--afg-green); }

/* WP-assigned 'primary' menu fallback (uses wp_nav_menu markup) */
.afg-wp-menu { list-style: none; display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; }
.afg-wp-menu > li { position: relative; }
.afg-wp-menu > li > a {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  font-size: .95rem; font-weight: 700; color: var(--afg-navy); text-decoration: none;
  transition: background .15s ease, color .15s ease;
}
.afg-wp-menu > li > a:hover,
.afg-wp-menu > li.current-menu-item > a { background: rgba(16,35,60,.06); color: var(--afg-navy); }
.afg-wp-menu .sub-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; margin: 0; padding: 8px;
  list-style: none; background: #fff; border: 1px solid rgba(16,35,60,.08); border-radius: 14px;
  box-shadow: 0 20px 45px rgba(16,35,60,.14); opacity: 0; visibility: hidden;
  transform: translateY(6px); transition: opacity .15s ease, transform .15s ease, visibility .15s ease; z-index: 60;
}
.afg-wp-menu > li:hover > .sub-menu,
.afg-wp-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.afg-wp-menu .sub-menu a {
  display: block; padding: 8px 12px; border-radius: 8px; font-size: .9rem; font-weight: 600;
  color: var(--afg-navy); text-decoration: none;
}
.afg-wp-menu .sub-menu a:hover { background: rgba(16,35,60,.06); color: var(--afg-green); }
/* Mobile WP menu list */
.afg-mobile-wp-menu { list-style: none; margin: 0; padding: 0; }
.afg-mobile-wp-menu li { border-bottom: 1px solid rgba(16,35,60,.08); }
.afg-mobile-wp-menu a { display: block; padding: 14px 4px; font-size: 1.05rem; font-weight: 700; color: var(--afg-navy); text-decoration: none; }
.afg-mobile-wp-menu .sub-menu { list-style: none; margin: 0; padding: 0 0 6px 14px; }
.afg-mobile-wp-menu .sub-menu a { padding: 10px 4px; font-size: .98rem; font-weight: 600; color: rgba(16,35,60,.82); }

/* Hero */
.afg-hero {
  background: linear-gradient(135deg, var(--afg-navy) 0%, var(--afg-navy-dark) 60%, #0e2a45 100%);
  color: #fff;
  padding: 90px 0 100px;
  text-align: center;
}
.afg-hero h1 { color: #fff; }
.afg-hero p {
  max-width: 640px;
  margin: 0 auto 34px;
  color: rgba(255,255,255,.85);
  font-size: 1.15rem;
}
.afg-hero .afg-btn { margin: 0 8px 8px; }
.afg-hero-badge {
  display: inline-block;
  background: rgba(35,164,92,.18);
  color: #7fe3a9;
  border: 1px solid rgba(35,164,92,.35);
  border-radius: 999px;
  padding: 6px 16px;
  font-family: var(--afg-font-display);
  font-weight: 600;
  font-size: .85rem;
  margin-bottom: 22px;
}
.afg-hero-note {
  font-size: .95rem !important;
  color: rgba(255,255,255,.6) !important;
  margin: 18px auto 0 !important;
}

/* Sections */
.afg-section { padding: 72px 0; }
.afg-section-soft { background: var(--afg-bg-soft); }
.afg-section-title { text-align: center; max-width: 700px; margin: 0 auto 48px; }
.afg-section-title p { color: var(--afg-muted); }
.afg-section-action { text-align: center; margin-top: 44px; }
.afg-eyebrow {
  display: inline-block;
  font-family: var(--afg-font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--afg-green);
  margin-bottom: 12px;
}
.afg-eyebrow-light { color: #7fe3a9; }

.afg-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.afg-card {
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: var(--afg-radius);
  padding: 28px;
}
.afg-card h3 { margin-bottom: .4em; }
.afg-card p { color: var(--afg-muted); margin: 0; }
/* Clickable child-page cards */
a.afg-card-link { display: block; text-decoration: none !important; color: inherit; transition: box-shadow .2s ease, transform .2s ease; }
a.afg-card-link:hover { box-shadow: 0 10px 30px rgba(16,35,60,.12); transform: translateY(-2px); }
a.afg-card-link h3 { color: var(--afg-navy); }
.afg-card-more { display: inline-block; margin-top: 14px; color: var(--afg-green); font-family: var(--afg-font-display); font-weight: 700; font-size: .92rem; }

/* Content images */
.afg-content img { max-width: 100%; height: auto; border-radius: 12px; }
img.afg-page-image { width: 100%; border-radius: 14px; margin-bottom: 28px; }

/* CTA band */
.afg-cta {
  background: linear-gradient(90deg, var(--afg-green) 0%, #17a2a0 55%, var(--afg-blue) 100%);
  color: #fff;
  text-align: center;
  padding: 64px 0;
}
.afg-cta h2 { color: #fff; }
.afg-cta p { color: rgba(255,255,255,.9); max-width: 560px; margin: 0 auto 28px; }
.afg-cta .afg-btn { margin: 0 6px 8px; }

/* Stats / trust band */
.afg-stats {
  background: linear-gradient(90deg, var(--afg-green) 0%, #17a2a0 55%, var(--afg-blue) 100%);
  color: #fff;
  padding: 40px 0;
}
.afg-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.afg-stat { display: flex; flex-direction: column; gap: 6px; }
.afg-stat-value {
  font-family: var(--afg-font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.1;
}
.afg-stat-label {
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255,255,255,.85);
}

/* Process steps with numbered circles */
.afg-steps {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(3, 1fr);
}
.afg-steps-four { grid-template-columns: repeat(4, 1fr); }
.afg-step {
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: var(--afg-radius);
  padding: 32px 26px;
  text-align: center;
}
.afg-step-num {
  width: 60px;
  height: 60px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--afg-blue-tint);
  color: var(--afg-blue);
  font-family: var(--afg-font-display);
  font-weight: 800;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.afg-step-num-active { background: var(--afg-green); color: #fff; }
.afg-step h3 { margin-bottom: .4em; }
.afg-step p { color: var(--afg-muted); margin: 0; }

/* Business services cards */
.afg-services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.afg-service-card {
  display: block;
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: var(--afg-radius);
  padding: 30px;
  color: inherit;
  text-decoration: none !important;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.afg-service-card:hover {
  border-color: var(--afg-green);
  box-shadow: 0 14px 30px rgba(16,35,60,.10);
  transform: translateY(-3px);
}
.afg-service-card h3 { margin-bottom: .4em; }
.afg-service-card p { color: var(--afg-muted); margin: 0 0 16px; }
.afg-service-link {
  font-family: var(--afg-font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--afg-green);
}

/* Industries grid */
.afg-industries { text-align: center; max-width: 860px; }
.afg-industries-lead { color: var(--afg-muted); max-width: 620px; margin: 0 auto 32px; }
.afg-industries-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
}
.afg-industry-pill {
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: var(--afg-font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--afg-navy);
}

/* Partner program banner */
.afg-partner-banner {
  background: linear-gradient(135deg, var(--afg-navy) 0%, var(--afg-navy-dark) 100%);
  color: #fff;
  padding: 60px 0;
}
.afg-partner-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.afg-partner-banner-text { max-width: 640px; }
.afg-partner-banner-text h2 { color: #fff; margin-bottom: .3em; }
.afg-partner-banner-text p { color: rgba(255,255,255,.82); margin: 0; }
.afg-partner-banner-action { flex-shrink: 0; }

/* Contact info cards */
.afg-contact-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);
}
.afg-contact-card {
  background: #fff;
  border: 1px solid #e4e9ef;
  border-radius: var(--afg-radius);
  padding: 30px;
  text-align: center;
}
.afg-contact-card h3 { margin-bottom: .3em; }
.afg-contact-card p { color: var(--afg-muted); margin: 0 0 10px; }
.afg-contact-link {
  font-family: var(--afg-font-display);
  font-weight: 700;
  color: var(--afg-green);
}
.afg-contact-address { color: var(--afg-navy) !important; font-weight: 600; }

/* Page header lead text */
.afg-page-header-lead {
  color: rgba(255,255,255,.85);
  max-width: 680px;
  margin: 14px 0 0;
  font-size: 1.1rem;
}

/* Responsive for new sections */
@media (max-width: 900px) {
  .afg-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .afg-steps, .afg-steps-four, .afg-services-grid, .afg-contact-grid {
    grid-template-columns: 1fr;
  }
}

/* Content pages */
.afg-page-header {
  background: var(--afg-navy);
  color: #fff;
  padding: 56px 0;
}
.afg-page-header h1 { color: #fff; margin: 0; }
.afg-content { padding: 56px 0; max-width: 820px; margin: 0 auto; }
.afg-content .afg-meta { color: var(--afg-muted); font-size: .92rem; margin-bottom: 24px; }
.afg-content h2, .afg-content h3 { margin-top: 1.4em; }
.afg-content blockquote {
  border-left: 4px solid var(--afg-green);
  margin: 1.5em 0;
  padding: .5em 1.2em;
  background: var(--afg-bg-soft);
  border-radius: 0 8px 8px 0;
}

/* Blog list */
.afg-post-card { display: flex; flex-direction: column; }
.afg-post-card .afg-date { color: var(--afg-muted); font-size: .88rem; margin-bottom: 6px; }
.afg-post-card a.afg-post-title { color: var(--afg-navy); font-family: var(--afg-font-display); font-weight: 700; font-size: 1.15rem; }
.afg-post-card a.afg-post-title:hover { color: var(--afg-green); text-decoration: none; }

/* Footer */
.afg-footer { background: var(--afg-navy-dark); color: rgba(255,255,255,.75); padding: 56px 0 32px; }
.afg-footer a { color: rgba(255,255,255,.85); }
.afg-footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 40px; }
.afg-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.afg-footer ul { list-style: none; margin: 0; padding: 0; }
.afg-footer li { margin-bottom: 8px; }
.afg-footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; font-size: .9rem; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; color: rgba(255,255,255,.55); }
.afg-footer-bottom p { margin: 0; }
.afg-footer-legal { display: flex; gap: 22px; }
.afg-footer-legal a { color: rgba(255,255,255,.6); text-decoration: none; }
.afg-footer-legal a:hover { color: #fff; }
.afg-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr; }
@media (max-width: 1000px) { .afg-footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .afg-footer-grid { grid-template-columns: 1fr; } }
.afg-footer-brand p { max-width: 340px; }
.afg-footer-logo { max-height: 56px; width: auto; margin-bottom: 18px; }
.afg-footer-contact li { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-weight: 600; color: #fff; }
.afg-footer-contact a { color: #fff; text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.afg-footer-contact a:hover { color: var(--afg-green); }
.afg-footer-ico { color: var(--afg-green); }
.afg-footer-apply { width: 100%; text-align: center; }

/* Full-width canvas for Elementor-designed pages */
.afg-fullwidth { width: 100%; }
.afg-fullwidth > * { max-width: none; }

/* Mobile navigation */
.afg-menu-toggle {
  display: none;
  background: none; border: 0;
  padding: 10px; cursor: pointer;
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.afg-menu-toggle-bars { position: relative; display: inline-block; width: 24px; height: 18px; }
.afg-menu-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; background: var(--afg-navy);
  border-radius: 2px; transition: transform .25s ease, opacity .2s ease, top .25s ease;
}
.afg-menu-toggle-bars span:nth-child(1) { top: 0; }
.afg-menu-toggle-bars span:nth-child(2) { top: 8px; }
.afg-menu-toggle-bars span:nth-child(3) { top: 16px; }
.afg-menu-toggle[aria-expanded="true"] .afg-menu-toggle-bars span:nth-child(1) { top: 8px; transform: rotate(45deg); }
.afg-menu-toggle[aria-expanded="true"] .afg-menu-toggle-bars span:nth-child(2) { opacity: 0; }
.afg-menu-toggle[aria-expanded="true"] .afg-menu-toggle-bars span:nth-child(3) { top: 8px; transform: rotate(-45deg); }

.afg-mobile-nav { display: none; }
body.afg-nav-locked { overflow: hidden; }

@media (max-width: 980px) {
  .afg-mega-nav { display: none; }
  .afg-header-cta { display: none; }
  .afg-menu-toggle { display: inline-flex; }
  .afg-header { position: sticky; }

  .afg-mobile-nav {
    display: block;
    position: fixed; inset: 0; top: 0;
    background: var(--afg-navy);
    color: #fff;
    transform: translateX(100%);
    transition: transform .3s ease;
    z-index: 45;
    overflow-y: auto;
    padding: 88px 0 40px;
  }
  .afg-mobile-nav.is-open { transform: translateX(0); }
  .afg-mobile-nav-inner { max-width: 460px; margin: 0 auto; padding: 0 24px; }

  .afg-mobile-home,
  .afg-mobile-link {
    display: block; padding: 16px 0; font-family: var(--afg-font-display);
    font-weight: 700; font-size: 1.4rem; color: #fff; text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .afg-mobile-home:hover,
  .afg-mobile-link:hover { color: var(--afg-green); }

  .afg-mobile-acc { border-bottom: 1px solid rgba(255,255,255,.1); }
  .afg-mobile-acc > summary {
    list-style: none; cursor: pointer;
    padding: 16px 0; font-family: var(--afg-font-display);
    font-weight: 700; font-size: 1.4rem; color: #fff;
    display: flex; align-items: center; justify-content: space-between;
  }
  .afg-mobile-acc > summary::-webkit-details-marker { display: none; }
  .afg-mobile-acc > summary::after {
    content: ""; width: 10px; height: 10px;
    border-right: 2px solid rgba(255,255,255,.6); border-bottom: 2px solid rgba(255,255,255,.6);
    transform: rotate(45deg); transition: transform .2s ease;
  }
  .afg-mobile-acc[open] > summary::after { transform: rotate(-135deg); }
  .afg-mobile-acc-body { padding: 4px 0 18px 12px; }
  .afg-mobile-viewall {
    display: inline-block; margin-bottom: 12px;
    font-weight: 700; font-size: 1.05rem; color: var(--afg-green); text-decoration: none;
  }
  .afg-mobile-group {
    font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
    color: rgba(255,255,255,.5); margin: 16px 0 8px;
  }
  .afg-mobile-group-teal { color: var(--afg-green); }
  .afg-mobile-links { list-style: none; margin: 0 0 4px; padding: 0; }
  .afg-mobile-links a {
    display: block; padding: 9px 0; color: rgba(255,255,255,.85);
    font-weight: 600; font-size: 1.02rem; text-decoration: none;
  }
  .afg-mobile-links a:hover { color: var(--afg-green); }
  .afg-mobile-sub a { padding-left: 16px; font-size: .95rem; color: rgba(255,255,255,.65); }

  .afg-mobile-foot { margin-top: 28px; }
  .afg-mobile-phone {
    display: flex; align-items: center; justify-content: center;
    padding: 16px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1);
    font-weight: 700; font-size: 1.1rem; color: #fff; margin-bottom: 18px;
  }
  .afg-btn-block { display: block; width: 100%; text-align: center; }
}

/* ===== Homepage (front-page.php) sections — v1.4.0 ===== */
/* Photo hero */
.afg-hero-photo {
  position: relative;
  text-align: left;
  padding: 110px 0 120px;
  overflow: hidden;
}
.afg-hero-media { position: absolute; inset: 0; }
.afg-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.afg-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,35,60,.9) 0%, rgba(16,35,60,.65) 55%, rgba(16,35,60,.25) 100%);
}
.afg-hero-inner { position: relative; z-index: 2; max-width: 1160px; }
.afg-hero-photo p { margin: 0 0 30px; max-width: 620px; }
.afg-hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 22px;
  background: rgba(35,164,92,.18); border: 1px solid rgba(35,164,92,.4);
  color: #6fe0a4; font-weight: 600; font-size: .9rem;
}
.afg-hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: #23a45c; }
.afg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.afg-hero-note { color: rgba(255,255,255,.6) !important; font-size: .9rem !important; margin-top: 18px !important; }
.afg-text-gradient {
  background: linear-gradient(90deg, var(--afg-green) 0%, #17a2a0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.afg-btn-ghost {
  background: transparent; color: #fff !important;
  border: 2px solid rgba(255,255,255,.3);
}
.afg-btn-ghost:hover { background: rgba(255,255,255,.1); }
.afg-btn-outline {
  background: transparent; color: var(--afg-navy) !important;
  border: 1.5px solid #d4dce5;
}
.afg-btn-outline:hover { border-color: var(--afg-green); color: var(--afg-green) !important; }

/* Stats strip */
.afg-stats {
  background: linear-gradient(90deg, var(--afg-green) 0%, #17a2a0 55%, var(--afg-blue) 100%);
  color: #fff; padding: 40px 0;
}
.afg-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.afg-stats-grid > div + div { border-left: 1px solid rgba(255,255,255,.2); }
.afg-stats h3 { color: #fff; font-size: 2.2rem; margin: 0 0 4px; }
.afg-stats p { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; color: rgba(255,255,255,.8); }
@media (max-width: 720px) {
  .afg-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .afg-stats-grid > div:nth-child(3) { border-left: none; }
}

/* Steps */
.afg-steps { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.afg-step {
  background: #fff; border: 1px solid #e4e9ef; border-radius: 16px;
  padding: 32px 28px; text-align: center;
}
.afg-step-num {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(35,164,92,.1); color: var(--afg-green);
  font-family: var(--afg-font-display); font-weight: 700; font-size: 1.5rem;
}
.afg-step-num-filled { background: var(--afg-green); color: #fff; }
.afg-step p { color: var(--afg-muted); margin: 0; }

/* Split heading */
.afg-split-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 44px;
}
.afg-split-head p { color: var(--afg-muted); margin: 0; max-width: 560px; }

/* Product / service cards */
.afg-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.afg-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.afg-product-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #e4e9ef; border-radius: 16px; overflow: hidden;
  text-decoration: none !important; color: inherit;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.afg-product-card:hover {
  box-shadow: 0 16px 32px rgba(16,35,60,.12);
  transform: translateY(-4px); border-color: rgba(35,164,92,.5);
}
.afg-product-media { position: relative; height: 160px; overflow: hidden; }
.afg-service-media { height: 190px; }
.afg-product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.afg-product-card:hover .afg-product-media img { transform: scale(1.05); }
.afg-product-tag {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(35,164,92,.85); color: #fff;
  font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 8px; border-radius: 6px;
}
.afg-tag-teal { background: rgba(23,162,160,.9); border-radius: 999px; padding: 4px 12px; }
.afg-product-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.afg-product-body h3 { font-size: 1.15rem; margin-bottom: .5em; }
.afg-product-body > p { color: var(--afg-muted); font-size: .92rem; margin: 0 0 18px; flex: 1; }
.afg-product-card:hover h3 { color: var(--afg-green); }
.afg-product-terms {
  background: var(--afg-bg-soft); border: 1px solid #eef2f6; border-radius: 12px;
  padding: 12px 16px; margin-bottom: 18px; font-size: .86rem;
}
.afg-product-terms > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.afg-product-terms span { color: var(--afg-muted); }
.afg-product-terms strong { color: var(--afg-navy); text-align: right; }
.afg-product-more { color: var(--afg-green); font-weight: 700; font-size: .9rem; margin-top: auto; }
.afg-more-teal { color: #17a2a0; }
.afg-home-service:hover h3 { color: #17a2a0; }

/* Industries */
.afg-section-bordered { border-top: 1px solid #e4e9ef; border-bottom: 1px solid #e4e9ef; }
.afg-text-center { text-align: center; }
.afg-eyebrow-pill {
  display: inline-block; padding: 6px 16px; border-radius: 999px; margin-bottom: 20px;
  background: rgba(35,164,92,.1); color: var(--afg-green); border: 1px solid rgba(35,164,92,.2);
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
}
.afg-eyebrow-pill-teal { background: rgba(23,162,160,.1); color: #17a2a0; border-color: rgba(23,162,160,.2); }
.afg-lead { color: var(--afg-muted); font-size: 1.1rem; max-width: 680px; margin: 0 auto 36px; }
.afg-chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 36px; }
.afg-chip {
  background: var(--afg-bg-soft); border: 1px solid #e4e9ef; border-radius: 999px;
  padding: 10px 20px; font-weight: 600; color: var(--afg-navy);
}

/* Why choose us */
.afg-why {
  background: linear-gradient(135deg, var(--afg-navy) 0%, var(--afg-navy-dark) 60%, #0e2a45 100%);
  color: #fff; padding: 90px 0;
}
.afg-why-grid { display: grid; gap: 56px; grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 900px) { .afg-why-grid { grid-template-columns: 1fr; } }
.afg-why h2 { color: #fff; }
.afg-why-copy > p { color: rgba(255,255,255,.85); font-size: 1.08rem; margin-bottom: 28px; }
.afg-checklist { list-style: none; margin: 0 0 30px; padding: 0; }
.afg-checklist li {
  position: relative; padding-left: 34px; margin-bottom: 14px;
  color: rgba(255,255,255,.9); font-weight: 500;
}
.afg-checklist li::before {
  content: "\2713"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(35,164,92,.2); color: #6fe0a4;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700;
}
.afg-testimonials {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; padding: 32px; display: grid; gap: 22px;
}
.afg-testimonial {
  background: #fff; border-radius: 12px; padding: 22px;
  display: flex; gap: 16px; box-shadow: 0 16px 32px rgba(0,0,0,.25);
}
.afg-testimonial-offset { transform: translateX(16px); }
@media (max-width: 600px) { .afg-testimonial-offset { transform: none; } }
.afg-avatar {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.afg-avatar-blue { background: #dbeafe; color: #1d4ed8; }
.afg-avatar-green { background: #dcfce7; color: #15803d; }
.afg-stars { color: #facc15; letter-spacing: 2px; margin-bottom: 6px; }
.afg-quote { color: var(--afg-text); font-size: .92rem; font-weight: 500; margin: 0 0 8px; }
.afg-attrib { color: var(--afg-muted); font-size: .8rem; margin: 0; }


/* ===== Designed detail & index templates — v1.5.0 ===== */

/* Grid helpers reused by templates */
.afg-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Image hero for product / industry / service detail pages */
.afg-detail-hero {
  position: relative;
  color: #fff;
  padding: 84px 0 92px;
  overflow: hidden;
  background: var(--afg-navy);
}
.afg-detail-hero-media { position: absolute; inset: 0; }
.afg-detail-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.afg-detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(16,35,60,.94) 0%, rgba(16,35,60,.75) 55%, rgba(16,35,60,.4) 100%);
}
.afg-detail-hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
}
.afg-detail-hero-copy h1 { color: #fff; margin-bottom: .3em; }
.afg-detail-hero-copy p { color: rgba(255,255,255,.9); font-size: 1.12rem; max-width: 620px; margin: 0 0 28px; }
.afg-detail-hero .afg-hero-badge { background: rgba(35,164,92,.18); color: #7fe3a9; border: 1px solid rgba(35,164,92,.4); }
.afg-detail-hero .afg-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Terms "At a Glance" card */
.afg-terms-card {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  padding: 28px 30px;
  backdrop-filter: blur(6px);
}
.afg-terms-card h3 { color: #fff; margin-bottom: 18px; }
.afg-terms-row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.12);
}
.afg-terms-row:last-child { border-bottom: none; }
.afg-terms-row span { color: rgba(255,255,255,.7); font-size: .9rem; }
.afg-terms-row strong { color: #fff; text-align: right; font-family: var(--afg-font-display); }

/* Overview split (copy + image) */
.afg-split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.afg-split-copy > p { color: var(--afg-muted); font-size: 1.05rem; margin: 0 0 18px; }
.afg-split-media img { width: 100%; border-radius: 20px; box-shadow: 0 20px 44px rgba(16,35,60,.16); object-fit: cover; }

/* Highlight list (inline pills under overview) */
.afg-highlight-list {
  list-style: none; margin: 8px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.afg-highlight-list li {
  background: rgba(35,164,92,.1); color: var(--afg-green-dark);
  border: 1px solid rgba(35,164,92,.22); border-radius: 999px;
  padding: 8px 16px; font-weight: 600; font-size: .9rem;
}

/* Two-column panels (Who Qualifies / Benefits) */
.afg-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.afg-panel { border-radius: 20px; padding: 40px; }
.afg-panel h3 { margin-bottom: 22px; }
.afg-panel-light { background: #fff; border: 1px solid #e4e9ef; box-shadow: 0 10px 30px rgba(16,35,60,.06); }
.afg-panel-dark { background: var(--afg-navy); color: #fff; }
.afg-panel-dark h3 { color: #fff; }
.afg-panel-lead { color: rgba(255,255,255,.85); margin: 0 0 22px; }

/* Checklist with green ticks */
.afg-check-list { list-style: none; margin: 0; padding: 0; }
.afg-check-list li {
  position: relative; padding-left: 34px; margin-bottom: 16px;
  color: var(--afg-text); font-weight: 500; line-height: 1.5;
}
.afg-check-list li::before {
  content: "\2713"; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(35,164,92,.14); color: var(--afg-green-dark);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700;
}
.afg-check-list-light li { color: rgba(255,255,255,.92); }
.afg-check-list-light li::before { background: rgba(35,164,92,.25); color: #7fe3a9; }

/* FAQ accordion (native details/summary — no JS) */
.afg-faq-wrap { max-width: 860px; }
.afg-faq { border: 1px solid #e4e9ef; border-radius: 18px; overflow: hidden; background: #fff; }
.afg-faq-item { border-bottom: 1px solid #eef2f6; }
.afg-faq-item:last-child { border-bottom: none; }
.afg-faq-item summary {
  cursor: pointer; list-style: none; padding: 22px 26px;
  font-family: var(--afg-font-display); font-weight: 700; font-size: 1.08rem;
  color: var(--afg-navy); display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.afg-faq-item summary::-webkit-details-marker { display: none; }
.afg-faq-item summary::after {
  content: "+"; color: var(--afg-green); font-size: 1.5rem; font-weight: 400; line-height: 1;
  transition: transform .2s ease;
}
.afg-faq-item[open] summary { color: var(--afg-green); }
.afg-faq-item[open] summary::after { content: "\2212"; }
.afg-faq-answer { padding: 0 26px 24px; color: var(--afg-muted); line-height: 1.65; }

/* -------- About / page hero extras -------- */
.afg-about-hero .afg-detail-hero-copy { max-width: 760px; }
.afg-text-center-hero { text-align: center; margin: 0 auto; }
.afg-text-center-hero .afg-hero-actions { justify-content: center; }
.afg-about-stats {
  background: var(--afg-navy); color: #fff; border-radius: 22px;
  padding: 40px 44px; display: flex; flex-direction: column; gap: 30px;
  box-shadow: 0 24px 50px rgba(16,35,60,.18);
}
.afg-about-stat-num { font-family: var(--afg-font-display); font-weight: 800; font-size: 2.4rem; color: var(--afg-green); line-height: 1.05; }
.afg-about-stat-label { color: rgba(255,255,255,.9); font-weight: 600; margin-top: 4px; }
.afg-apply-trust { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; margin: 18px 0 6px; color: rgba(255,255,255,.9); font-weight: 600; font-size: .95rem; }

/* -------- News / blog listing -------- */
.afg-news-hero {
  position: relative; background: var(--afg-navy); color: #fff;
  padding: 84px 0 72px; overflow: hidden;
}
.afg-news-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, var(--afg-navy) 0%, var(--afg-navy-dark) 55%, #0e2a45 100%);
}
.afg-news-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.afg-news-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.4rem); margin: 14px 0 12px; }
.afg-news-hero .afg-lead { color: rgba(255,255,255,.9); max-width: 620px; }

.afg-news-grid { display: grid; gap: 30px; grid-template-columns: repeat(3, 1fr); }
.afg-news-card {
  display: flex; flex-direction: column; background: #fff;
  border: 1px solid #e4e9ef; border-radius: 18px; overflow: hidden;
  text-decoration: none; box-shadow: 0 4px 16px rgba(16,35,60,.05);
  transition: box-shadow .25s ease, transform .25s ease;
}
.afg-news-card:hover { box-shadow: 0 20px 40px rgba(16,35,60,.12); transform: translateY(-3px); }
.afg-news-card-media { position: relative; height: 190px; overflow: hidden; }
.afg-news-card-media-sm { height: 150px; }
.afg-news-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.afg-news-card:hover .afg-news-card-media img { transform: scale(1.05); }
.afg-news-card-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,35,60,.55), transparent 55%);
}
.afg-news-badge {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  background: var(--afg-green); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.afg-news-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.afg-news-meta { display: flex; gap: 16px; font-size: .8rem; color: var(--afg-muted); margin-bottom: 10px; }
.afg-news-meta-item { display: inline-flex; align-items: center; }
.afg-news-card-title {
  font-size: 1.18rem; line-height: 1.3; margin: 0 0 10px; color: var(--afg-navy);
}
.afg-news-card:hover .afg-news-card-title { color: var(--afg-green); }
.afg-news-excerpt { color: var(--afg-muted); font-size: .95rem; margin: 0 0 18px; flex: 1; }
.afg-news-readmore { font-weight: 800; font-size: .85rem; color: var(--afg-green); }
.afg-news-pagination { margin-top: 46px; text-align: center; }
.afg-news-pagination .page-numbers {
  display: inline-block; padding: 8px 14px; margin: 0 3px;
  border: 1px solid #e4e9ef; border-radius: 8px; color: var(--afg-navy);
  text-decoration: none; font-weight: 600;
}
.afg-news-pagination .page-numbers.current { background: var(--afg-green); color: #fff; border-color: var(--afg-green); }
.afg-news-pagination .page-numbers:hover { border-color: var(--afg-green); color: var(--afg-green); }
.afg-news-pagination .page-numbers.current:hover { color: #fff; }

/* -------- Single article -------- */
.afg-article-hero {
  position: relative; background: var(--afg-navy); color: #fff;
  padding: 96px 0 68px; overflow: hidden;
}
.afg-article-hero-media { position: absolute; inset: 0; }
.afg-article-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.afg-article-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(11,26,46,.9) 0%, rgba(16,35,60,.7) 55%, rgba(16,35,60,.35) 100%);
}
.afg-article-hero-inner { position: relative; z-index: 1; max-width: 820px; }
.afg-article-back { display: inline-block; color: rgba(255,255,255,.9); font-size: .9rem; font-weight: 600; text-decoration: none; margin-bottom: 22px; }
.afg-article-back:hover { color: #fff; }
.afg-article-badges { margin-bottom: 16px; }
.afg-article-badges .afg-news-badge { position: static; display: inline-block; }
.afg-article-hero h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.15; margin: 0 0 16px; }
.afg-article-meta { display: flex; gap: 20px; font-size: .9rem; color: rgba(255,255,255,.85); }

.afg-article-wrap { max-width: 760px; }
.afg-article-body { font-size: 1.06rem; line-height: 1.75; color: var(--afg-text); }
.afg-article-body h2 { font-size: 1.7rem; margin: 40px 0 16px; }
.afg-article-body h3 { font-size: 1.32rem; margin: 32px 0 12px; }
.afg-article-body p { margin: 0 0 20px; }
.afg-article-body a { color: var(--afg-green); font-weight: 600; }
.afg-article-body ul, .afg-article-body ol { margin: 0 0 22px; padding-left: 22px; }
.afg-article-body li { margin-bottom: 8px; }
.afg-article-body img { max-width: 100%; height: auto; border-radius: 14px; margin: 12px 0 24px; }
.afg-article-body blockquote {
  margin: 28px 0; padding: 18px 26px; border-left: 4px solid var(--afg-green);
  background: var(--afg-bg-soft); border-radius: 0 12px 12px 0;
  font-size: 1.14rem; font-style: italic; color: var(--afg-navy);
}
.afg-article-body blockquote p:last-child { margin-bottom: 0; }
.afg-article-pagelinks { margin: 20px 0; font-weight: 600; }

.afg-article-cta {
  margin-top: 48px; background: var(--afg-navy); color: #fff;
  border-radius: 18px; padding: 34px 36px;
}
.afg-article-cta h3 { color: #fff; font-size: 1.5rem; margin: 0 0 8px; }
.afg-article-cta p { color: rgba(255,255,255,.9); margin: 0 0 22px; }
.afg-article-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.afg-article-more-title { font-size: 1.9rem; margin-bottom: 28px; }

/* Responsive */
@media (max-width: 980px) {
  .afg-news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .afg-detail-hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .afg-split { grid-template-columns: 1fr; gap: 32px; }
  .afg-split-media { order: -1; }
  .afg-two-col { grid-template-columns: 1fr; }
  .afg-panel { padding: 30px; }
}
@media (max-width: 640px) {
  .afg-news-grid { grid-template-columns: 1fr; }
  .afg-article-cta { padding: 26px 22px; }
  .afg-article-cta-actions { flex-direction: column; }
  .afg-article-cta-actions .afg-btn { width: 100%; text-align: center; }
}
