/* =============================================
   FHBA v3 — BOLD, COLORFUL, FULL-WIDTH Design
   ============================================= */

:root {
  --primary: #0B6E8A;
  --primary-dark: #064D61;
  --primary-light: #E8F4F8;
  --primary-50: #F0F9FC;
  --accent: #FF8C42;
  --accent-dark: #E67A30;
  --accent-light: #FFF3EB;
  --success: #16A34A;
  --success-light: #DCFCE7;
  --danger: #DC2626;
  --text-primary: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --bg-subtle: #F1F5F9;
  --bg-card: #FFFFFF;
  --bg-page: #FFFFFF;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ============ RESET ASTRA CONSTRAINTS ============ */
body.fhba-site { font-family: var(--font) !important; background: var(--bg-page) !important; color: var(--text-body); -webkit-font-smoothing: antialiased; }
body.fhba-site .ast-container { max-width: 100% !important; padding: 0 !important; }
body.fhba-site .site-content .ast-container { max-width: 100% !important; }
body.fhba-site #primary { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
body.fhba-site .entry-content { margin: 0 !important; max-width: 100% !important; }
body.fhba-site .page .entry-header { display: none !important; }
body.fhba-site h1, body.fhba-site h2, body.fhba-site h3, body.fhba-site h4 { font-family: var(--font) !important; color: var(--text-primary); }
body.fhba-site a { color: var(--primary); transition: all 0.2s; text-decoration: none; }
body.fhba-site a:hover { color: var(--primary-dark); }

/* ============ HEADER ============ */
body.fhba-site .ast-primary-header-bar, body.fhba-site .site-header {
  background: #FFFFFF !important;
  border-bottom: 1px solid var(--border) !important;
  box-shadow: 0 1px 8px rgba(0,0,0,0.06) !important;
}
body.fhba-site .site-title { font-weight: 800 !important; color: var(--primary) !important; font-size: 20px !important; }
body.fhba-site .main-header-menu a, body.fhba-site .ast-header-navigation a {
  color: var(--text-primary) !important; font-weight: 500 !important; font-size: 14px !important;
  padding: 8px 14px !important; border-radius: 8px !important; transition: all 0.2s !important;
}
body.fhba-site .main-header-menu a:hover, body.fhba-site .ast-header-navigation a:hover {
  background: var(--primary-light) !important; color: var(--primary) !important;
}

/* ============ HERO ============ */
.fhba-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  min-height: 580px;
  padding: 72px 80px;
  background: linear-gradient(160deg, #064D61 0%, #0B6E8A 40%, #0E7FA0 70%, #1190B5 100%);
  position: relative;
  overflow: hidden;
}
.fhba-hero::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,140,66,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.fhba-hero::after {
  content: '';
  position: absolute;
  bottom: -150px; left: -50px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.fhba-hero-content { position: relative; z-index: 2; }

.fhba-hero-content .eyebrow {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.2);
}

.fhba-hero h1 {
  font-size: 46px !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  color: #FFFFFF !important;
  margin-bottom: 20px !important;
  letter-spacing: -0.02em !important;
  background: none !important;
  -webkit-text-fill-color: #FFFFFF !important;
}

.fhba-hero .hero-subtitle {
  font-size: 18px; line-height: 1.65; color: rgba(255,255,255,0.85); margin-bottom: 32px; max-width: 520px;
}

.fhba-hero .hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }

.fhba-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; background: var(--accent) !important; color: #FFFFFF !important;
  font-size: 16px; font-weight: 700; border-radius: 10px; border: none;
  box-shadow: 0 4px 14px rgba(255,140,66,0.4); transition: all 0.2s; text-decoration: none !important;
}
.fhba-btn-primary:hover {
  background: var(--accent-dark) !important; color: #FFFFFF !important;
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,140,66,0.5);
}

.fhba-btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 16px 28px; background: rgba(255,255,255,0.1) !important; color: #FFFFFF !important;
  font-size: 16px; font-weight: 600; border: 2px solid rgba(255,255,255,0.3);
  border-radius: 10px; transition: all 0.2s; text-decoration: none !important; backdrop-filter: blur(4px);
}
.fhba-btn-secondary:hover { background: rgba(255,255,255,0.2) !important; color: #FFFFFF !important; border-color: rgba(255,255,255,0.5); }

.fhba-hero .trust-bar {
  display: flex; gap: 36px; padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.fhba-hero .trust-item { display: flex; flex-direction: column; }
.fhba-hero .trust-item .trust-number { font-size: 24px; font-weight: 800; color: var(--accent); }
.fhba-hero .trust-item .trust-label { font-size: 11px; font-weight: 500; color: rgba(255,255,255,0.6); text-transform: uppercase; letter-spacing: 0.06em; }

/* Hero Right Side Cards */
.fhba-hero-visual { display: flex; flex-direction: column; gap: 14px; position: relative; z-index: 2; }

.fhba-mini-card {
  background: rgba(255,255,255,0.95); border: none;
  border-radius: 14px; padding: 22px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); transition: transform 0.2s;
  backdrop-filter: blur(10px);
}
.fhba-mini-card:hover { transform: translateY(-3px) scale(1.01); }
.fhba-mini-card .mini-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-muted); margin-bottom: 4px; }
.fhba-mini-card .mini-value { font-size: 26px; font-weight: 800; color: var(--success); }
.fhba-mini-card .mini-value.teal { color: var(--primary); }
.fhba-mini-card .mini-value.orange { color: var(--accent); }
.fhba-mini-card .mini-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }

/* Left-border accent on mini cards */
.fhba-mini-card:nth-child(1) { border-left: 4px solid var(--success); }
.fhba-mini-card:nth-child(2) { border-left: 4px solid var(--primary); }
.fhba-mini-card:nth-child(3) { border-left: 4px solid var(--accent); }

/* ============ SECTIONS ============ */
.fhba-section { padding: 80px 80px; max-width: 100%; margin: 0 auto; }
.fhba-section-inner { max-width: 1200px; margin: 0 auto; }
.fhba-section-alt { background: var(--bg-subtle); padding: 80px 80px; }
.fhba-section-alt-inner { max-width: 1200px; margin: 0 auto; }
.fhba-section-teal { background: linear-gradient(135deg, #064D61, #0B6E8A); padding: 80px 80px; }
.fhba-section-teal-inner { max-width: 1200px; margin: 0 auto; }

.fhba-section-title {
  font-size: 36px !important; font-weight: 800 !important; color: var(--text-primary) !important;
  text-align: center; margin-bottom: 12px !important; letter-spacing: -0.02em;
}
.fhba-section-title.white { color: #FFFFFF !important; }
.fhba-section-subtitle {
  font-size: 17px; color: var(--text-muted); text-align: center; margin-bottom: 48px;
  max-width: 560px; margin-left: auto; margin-right: auto; line-height: 1.6;
}
.fhba-section-subtitle.white { color: rgba(255,255,255,0.7); }

/* ============ FEATURE CARDS ============ */
.fhba-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.fhba-feature-card {
  background: var(--bg-card); border-radius: 16px; padding: 36px 32px;
  border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all 0.3s ease; text-decoration: none !important; display: block;
}
.fhba-feature-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.1); border-color: var(--primary); }

.fhba-feature-card .card-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
}
.fhba-feature-card .card-icon.teal { background: linear-gradient(135deg, #E8F4F8, #D0EBF2); }
.fhba-feature-card .card-icon.orange { background: linear-gradient(135deg, #FFF3EB, #FFE4D0); }
.fhba-feature-card .card-icon.green { background: linear-gradient(135deg, #DCFCE7, #BBF7D0); }

.fhba-feature-card h3 { font-size: 20px !important; font-weight: 700 !important; margin-bottom: 10px !important; }
.fhba-feature-card p { color: var(--text-body); font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
.fhba-feature-card .card-link { font-size: 14px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; transition: gap 0.2s; }
.fhba-feature-card:hover .card-link { gap: 12px; color: var(--accent-dark); }

/* ============ PROCESS STEPS ============ */
.fhba-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; position: relative; }
.fhba-steps::before { content: ''; position: absolute; top: 30px; left: 80px; right: 80px; height: 3px; background: linear-gradient(90deg, var(--accent), var(--primary), var(--success), var(--primary)); border-radius: 2px; z-index: 0; }

.fhba-step { text-align: center; counter-increment: step; position: relative; z-index: 1; background: var(--bg-subtle); border-radius: 16px; padding: 32px 20px 28px; }

.fhba-step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #1190B5);
  color: white; font-size: 22px; font-weight: 800; margin: 0 auto 18px;
  box-shadow: 0 4px 12px rgba(11,110,138,0.3);
}

.fhba-step h4 { font-size: 16px !important; font-weight: 700 !important; margin-bottom: 8px !important; }
.fhba-step p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ============ STATE GRANTS ============ */
.fhba-states { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.fhba-state-card {
  background: var(--bg-card); border-radius: 14px; padding: 28px 20px;
  border: 1px solid var(--border); box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  text-align: center; transition: all 0.2s; position: relative; overflow: hidden;
}
.fhba-state-card:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }

.fhba-state-card.highlight { border-color: var(--success); background: linear-gradient(180deg, #FFFFFF 80%, #DCFCE7 100%); }
.fhba-state-card.highlight::before {
  content: 'BEST VALUE'; position: absolute; top: 10px; right: -28px;
  background: linear-gradient(90deg, var(--accent), #FF6B2C); color: white;
  font-size: 8px; font-weight: 800; letter-spacing: 0.1em; padding: 4px 32px;
  transform: rotate(45deg);
}

.fhba-state-card .state-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); margin-bottom: 10px; }
.fhba-state-card .grant-amount { font-size: 34px; font-weight: 800; color: var(--primary); line-height: 1; }
.fhba-state-card .grant-amount.best { color: var(--success); }
.fhba-state-card .grant-amount.none { color: var(--text-muted); font-size: 14px; font-weight: 600; }
.fhba-state-card .details { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.4; }

/* ============ CTA ============ */
.fhba-cta-section {
  background: linear-gradient(135deg, #064D61 0%, #0B6E8A 40%, #0E7FA0 100%);
  color: white; padding: 72px 48px; border-radius: 24px;
  text-align: center; position: relative; overflow: hidden;
}
.fhba-cta-section::before { content: ''; position: absolute; top: -80px; right: -60px; width: 350px; height: 350px; background: radial-gradient(circle, rgba(255,140,66,0.2) 0%, transparent 70%); border-radius: 50%; }
.fhba-cta-section::after { content: ''; position: absolute; bottom: -100px; left: -40px; width: 280px; height: 280px; background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%); border-radius: 50%; }

.fhba-cta-section h2 { font-size: 34px !important; font-weight: 800 !important; color: white !important; margin-bottom: 14px !important; position: relative; z-index: 1; }
.fhba-cta-section p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 28px; max-width: 520px; margin-left: auto; margin-right: auto; position: relative; z-index: 1; line-height: 1.6; }
.fhba-cta-section .fhba-btn-primary { position: relative; z-index: 1; font-size: 17px; padding: 18px 40px; }

/* ============ BANNER (colored info strip) ============ */
.fhba-banner {
  background: linear-gradient(90deg, var(--accent), #FF6B2C);
  color: white; text-align: center; padding: 16px 24px; font-size: 15px; font-weight: 600;
}
.fhba-banner a { color: white !important; text-decoration: underline !important; font-weight: 700; }

/* ============ LATEST POSTS ============ */
body.fhba-site .wp-block-latest-posts { padding: 0 !important; }
body.fhba-site .wp-block-latest-posts li {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px 24px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); transition: all 0.3s;
  border-top: 4px solid var(--primary);
}
body.fhba-site .wp-block-latest-posts li:nth-child(2) { border-top-color: var(--accent); }
body.fhba-site .wp-block-latest-posts li:nth-child(3) { border-top-color: var(--success); }
body.fhba-site .wp-block-latest-posts li:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.1); transform: translateY(-4px); }
body.fhba-site .wp-block-latest-posts__post-title { font-size: 17px !important; font-weight: 700 !important; color: var(--text-primary) !important; line-height: 1.3 !important; }
body.fhba-site .wp-block-latest-posts__post-date { color: var(--text-muted) !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.04em; }
body.fhba-site .wp-block-latest-posts__post-excerpt { color: var(--text-body) !important; font-size: 14px !important; line-height: 1.6 !important; }

/* ============ ARTICLE ============ */
body.fhba-site article.post, body.fhba-site article.page {
  background: var(--bg-card); border-radius: 16px; padding: 48px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid var(--border); margin-bottom: 24px;
}
body.fhba-site .entry-title { font-size: 36px !important; font-weight: 800 !important; line-height: 1.2 !important; }

/* Tables */
body.fhba-site .wp-block-table table { border-collapse: separate; border-spacing: 0; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.06); width: 100%; }
body.fhba-site .wp-block-table thead th { background: linear-gradient(135deg, var(--primary), #0E7FA0) !important; color: white !important; padding: 16px 20px !important; font-weight: 700 !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: 0.06em; }
body.fhba-site .wp-block-table tbody td { padding: 14px 20px !important; border-bottom: 1px solid var(--border) !important; font-size: 15px; }
body.fhba-site .wp-block-table tbody tr:hover { background: var(--primary-50); }
body.fhba-site .wp-block-table tbody td strong { color: var(--primary); }

/* ============ FOOTER ============ */
body.fhba-site .ast-small-footer, body.fhba-site .ast-footer-overlay, body.fhba-site .site-footer,
body.fhba-site footer.site-footer, body.fhba-site .ast-small-footer .ast-container {
  background: #0F172A !important; color: #94A3B8 !important;
}
body.fhba-site .site-footer a { color: #CBD5E1 !important; }
body.fhba-site .site-footer a:hover { color: var(--accent) !important; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .fhba-hero { padding: 56px 32px; gap: 32px; }
  .fhba-section, .fhba-section-alt, .fhba-section-teal { padding: 56px 32px; }
}
@media (max-width: 768px) {
  .fhba-hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 20px; min-height: auto; }
  .fhba-hero h1 { font-size: 32px !important; }
  .fhba-hero .trust-bar { gap: 20px; }
  .fhba-features { grid-template-columns: 1fr; }
  .fhba-states { grid-template-columns: repeat(2, 1fr); }
  .fhba-steps { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .fhba-steps::before { display: none; }
  .fhba-section, .fhba-section-alt { padding: 40px 16px; }
  .fhba-cta-section { padding: 40px 20px; border-radius: 16px; }
  body.fhba-site article.post, body.fhba-site article.page { padding: 24px; }
}
@media (max-width: 480px) {
  .fhba-states { grid-template-columns: 1fr; }
  .fhba-steps { grid-template-columns: 1fr; }
  .fhba-hero .hero-buttons { flex-direction: column; }
}
