/*
Theme Name: ASTRO Astra Child
Template: astra
*/

/* ---------- Design Tokens (aliases) ---------- */
:root {
  /* Astra Global Colors - Required for Astra child themes */
  --ast-global-color-0: #0A4D68;  /* ASTRO Deep Ocean Blue (Primary) */
  --ast-global-color-1: #F59E0B;  /* ASTRO Warm Amber (Accent) */
  --ast-global-color-2: #FFFFFF;  /* White */
  --ast-global-color-3: #1F2937;  /* Dark Charcoal (Headings) */
  --ast-global-color-4: #F9FAFB;  /* Light Background */

  /* ASTRO Ocean Blue Palette (Official Brand Colors) */
  --astro-primary: #0A4D68;      /* Deep Ocean Blue - trust, stability */
  --astro-secondary: #088395;    /* Soft Teal - modern, fresh */
  --astro-accent: #F59E0B;       /* Warm Amber - action, CTAs */
  --astro-ink: #111827;          /* Ink - headings */
  --astro-body: #374151;         /* Body copy */
  
  /* Backgrounds */
  --astro-bg: #FAFAFA;           /* Warm White */
  --astro-bg-secondary: #F5F5F5; /* Soft Gray */
  --astro-light-gray: #ECEFF3;   /* Light Gray sections */
  
  /* Text Colors */
  --astro-text: #374151;         /* Medium Gray - body text */
  --astro-text-heading: #111827; /* Dark Charcoal - headings */
  --astro-text-dark: #111827;    /* Ink - very dark text */
  
  /* UI Elements */
  --astro-border: #E5E7EB;       /* Borders */
  --astro-white: #FFFFFF;        /* Pure white */
  --astro-radius-lg: 32px;
  --astro-radius-md: 20px;
  --astro-radius-sm: 12px;
  --astro-shadow-soft: 0 20px 45px rgba(10, 77, 104, 0.08), 0 12px 25px rgba(15, 23, 42, 0.08);

  /* Transitions */
  --transition-fast: 150ms ease-out;
  --transition-standard: 250ms ease-in-out;

  /* Typography Scale (responsive) */
  --fs-h1: clamp(2.25rem, 3.8vw, 3.5rem);   /* ~36px → 56px */
  --fs-h2: clamp(1.75rem, 2.6vw, 2.5rem);   /* ~28px → 40px */
  --fs-h3: clamp(1.375rem, 1.8vw, 1.75rem); /* ~22px → 28px */
  --fs-body: 1.125rem;                      /* 18px */
  --lh-tight: 1.15;
  --lh-normal: 1.6;
}

body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 1rem;
  line-height: var(--lh-normal);
  color: var(--astro-body);
  background-color: var(--astro-bg);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--astro-ink);
  font-weight: 700;
  line-height: var(--lh-tight);
}

p {
  line-height: var(--lh-normal);
  color: var(--astro-body);
}

@media (prefers-color-scheme: dark) {
  :root {
    --astro-bg: #111827;
    --astro-bg-secondary: #1F2937;
    --astro-text: #E5E7EB;
    --astro-text-heading: #F9FAFB;
    --astro-accent: #F59E0B;
    --astro-primary: #088395;      /* Lighter teal for dark mode */
    --astro-secondary: #0A4D68;
    --astro-border: #374151;
  }
}

/* ---------- Skip link ---------- */
.astro-skip-link {
  position: absolute;
  top: -1000px;
  left: 16px;
  padding: 12px 18px;
  background: var(--astro-white);
  color: var(--astro-ink);
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
  z-index: 1000;
}

.astro-skip-link:focus {
  top: 16px;
}

/* ---------- Buttons: micro-interactions (ASTRO style) ---------- */
.wp-block-button__link {
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 8px;
  background-color: var(--astro-accent);
  color: var(--astro-white);
}
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(245, 158, 11, 0.35), 0 4px 12px rgba(10, 77, 104, 0.2);
  background-color: var(--astro-primary);
}
.wp-block-button__link:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(10, 77, 104, 0.2);
}

/* Secondary Button Style */
.wp-block-button.is-style-outline .wp-block-button__link {
  background-color: transparent;
  border: 2px solid var(--astro-primary);
  color: var(--astro-primary);
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
  background-color: var(--astro-primary);
  color: var(--astro-white);
}

/* ---------- Focus states (WCAG 2.2) ---------- */
.wp-block-button__link:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--astro-accent);
  outline-offset: 2px;
}

/* ---------- Card style (ASTRO-inspired depth) ---------- */
.astro-card,
.is-style-soft-card {
  background: var(--astro-bg);
  border: 1px solid var(--astro-border);
  border-radius: 12px;
  padding: var(--wp--preset--spacing--50);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.06);
  transition: transform var(--transition-standard), box-shadow var(--transition-standard);
}

.how-it-works-row {
  background: var(--astro-bg);
}

.how-it-works-heading-col {
  text-align: center;
  margin-bottom: 32px;
}

.how-it-works-heading {
  font-size: clamp(2rem, 3vw, 3rem);
  margin-bottom: 0.5rem;
}

.how-it-works-subhead {
  max-width: 700px;
  margin: 0 auto;
  color: var(--astro-text);
}

.how-it-works-column {
  display: flex;
  align-items: stretch;
}

.how-it-works-column .fl-col-content {
  width: 100%;
  background: var(--astro-white);
  border: 1px solid var(--astro-border);
  border-radius: 16px;
  padding: 2rem;
  text-align: left;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform var(--transition-standard), box-shadow var(--transition-standard);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.how-it-works-column .fl-col-content:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(10, 77, 104, 0.16);
}

.how-it-works-step-title {
  margin: 0;
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  color: var(--astro-primary);
}

.how-it-works-step-body {
  margin: 0;
  color: var(--astro-text);
  line-height: var(--lh-normal);
}

.how-it-works-number {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: var(--astro-primary);
  color: var(--astro-white);
  font-weight: 700;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.swap-explorer-row {
  background: var(--astro-bg-secondary);
}

.swap-heading-col {
  margin-bottom: 32px;
}

.swap-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.swap-subhead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--astro-text);
}

.swap-card-col {
  padding: 0 12px;
  margin-bottom: 24px;
}

.astro-swap-card {
  background: #F8FBFF;
  border: 1px solid rgba(10, 77, 104, 0.12);
  border-radius: var(--astro-radius-lg);
  padding: 28px;
  box-shadow: var(--astro-shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: var(--astro-text-heading);
  opacity: 1;
}

.astro-swap-card h3 {
  color: var(--astro-text-heading);
}

.astro-swap-card p {
  color: var(--astro-text);
}

.astro-swap-card .astro-link-arrow {
  color: var(--astro-primary);
}

.astro-card-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--astro-radius-md);
  box-shadow: var(--astro-shadow-soft);
  margin: -8px -8px 16px;
}

.astro-swap-card-eyebrow {
  font-size: 0.9rem;
  color: var(--astro-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.astro-swap-card h3 {
  margin: 0;
  color: var(--astro-text-heading);
}

.astro-swap-card p {
  margin: 0;
  color: var(--astro-text);
  line-height: var(--lh-normal);
}

/* Force swap cards to use dark text even when modules inherit white inline colors */
.swap-explorer-row .astro-swap-card,
.swap-explorer-row .astro-swap-card *,
.swap-explorer-row .astro-swap-card .astro-link-arrow {
  color: var(--astro-text-heading) !important;
}

.swap-explorer-row .astro-swap-card p,
.swap-explorer-row .astro-swap-card .astro-swap-card-meta {
  color: var(--astro-body) !important;
}

.astro-swap-card-meta {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: var(--astro-text);
}

.astro-swap-token {
  font-weight: 600;
  color: var(--astro-primary);
  background: rgba(10, 77, 104, 0.08);
  padding: 4px 12px;
  border-radius: 999px;
}

.astro-link-arrow {
  color: var(--astro-primary);
  font-weight: 600;
}

.astro-link-arrow::after {
  content: "→";
  margin-left: 6px;
  transition: transform var(--transition-fast);
}

.astro-link-arrow:hover::after {
  transform: translateX(4px);
}

.astro-swap-card:hover {
  box-shadow: 0 20px 32px rgba(10, 77, 104, 0.12);
}

@media (max-width: 640px) {
  .swap-subhead {
    text-align: left;
  }

  .astro-swap-card {
    padding: 22px;
  }
}

.aartners-row {
  background: var(--astro-bg);
}

.aartners-heading {
  font-size: clamp(2rem, 3.5vw, 3rem);
  margin-bottom: 0.5rem;
}

.aartners-subhead {
  max-width: 760px;
  margin: 0 auto 48px;
  color: var(--astro-text);
}

.aartners-card-col {
  padding: 0 12px;
  margin-bottom: 24px;
}

.astro-aartners-card {
  background: var(--astro-white);
  border: 1px solid var(--astro-border);
  border-radius: var(--astro-radius-lg);
  padding: 28px;
  box-shadow: var(--astro-shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.astro-aartners-tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--astro-secondary);
  margin: 0;
}

.astro-aartners-card h3 {
  margin: 0;
  color: var(--astro-text-heading);
}

.astro-aartners-card p {
  margin: 0;
  color: var(--astro-text);
  line-height: var(--lh-normal);
}

.astro-aartners-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--astro-text);
}

.astro-aartners-card:hover {
  box-shadow: 0 18px 30px rgba(10, 77, 104, 0.12);
}

@media (max-width: 640px) {
  .aartners-subhead {
    margin-bottom: 32px;
  }

  .astro-aartners-card {
    padding: 22px;
  }
}

.advocacy-row {
  background: #041f29;
  color: var(--astro-white);
}

.advocacy-text-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.advocacy-eyebrow {
  color: var(--astro-accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0;
}

.advocacy-heading {
  color: var(--astro-white);
  margin: 0;
  font-size: clamp(2rem, 3vw, 3rem);
}

.advocacy-body {
  color: rgba(255, 255, 255, 0.85);
}

.astro-advocacy-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.astro-advocacy-list li {
  padding-left: 24px;
  position: relative;
  color: rgba(255, 255, 255, 0.82);
}

.astro-advocacy-list li::before {
  content: "•";
  position: absolute;
  left: 8px;
  color: var(--astro-accent);
}

.advocacy-cta .fl-button {
  background: var(--astro-accent);
  border: none;
}

.advocacy-highlight-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.astro-advocacy-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--astro-radius-lg);
  padding: 24px;
  color: var(--astro-white);
  font-size: 0.95rem;
  line-height: 1.5;
}

.astro-advocacy-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--astro-accent);
  margin-bottom: 8px;
}

.astro-advocacy-metric {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--astro-white);
}

.astro-advocacy-card p {
  margin: 0;
}

.pricing-row {
  background: var(--astro-bg-secondary);
}

.pricing-heading {
  margin-bottom: 0.5rem;
}

.pricing-subhead {
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--astro-text);
}

.pricing-card-col {
  padding: 0 12px;
  margin-bottom: 24px;
}

.astro-pricing-card {
  background: var(--astro-white);
  border: 1px solid var(--astro-border);
  border-radius: var(--astro-radius-lg);
  padding: 32px;
  box-shadow: var(--astro-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.astro-pricing-card.highlight {
  border: 2px solid var(--astro-accent);
  box-shadow: 0 18px 32px rgba(244, 170, 58, 0.18);
}

.astro-pricing-card h3 {
  margin: 0;
  font-size: 1.4rem;
  color: var(--astro-text-heading);
}

.astro-pricing-label {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--astro-secondary);
  margin: 0;
}

.astro-pricing-price {
  font-size: 2.75rem;
  font-weight: 700;
  margin: 0;
  color: var(--astro-text-heading);
}

.astro-pricing-price small {
  font-size: 0.9rem;
  color: var(--astro-text);
  font-weight: 500;
}

.astro-pricing-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.astro-pricing-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--astro-text);
}

.astro-pricing-features li::before {
  content: "✔";
  color: var(--astro-secondary);
  font-weight: 600;
}

.astro-pricing-card .fl-button,
.astro-pricing-card .astro-button {
  width: 100%;
  text-align: center;
}

/* ---------- Join page: floating benefits row ---------- */
.floating-card-row .fl-row-content-wrap {
  background: linear-gradient(135deg, rgba(10, 77, 104, 0.08), rgba(8, 131, 149, 0.08));
  border: 1px solid rgba(10, 77, 104, 0.08);
  border-radius: var(--astro-radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  box-shadow: 0 40px 65px rgba(15, 23, 42, 0.08);
}

.floating-card-row .fl-col-content {
  height: 100%;
}

.floating-card-row .fl-module-callout {
  background: var(--astro-white);
  border-radius: var(--astro-radius-md);
  border: 1px solid var(--astro-border);
  box-shadow: var(--astro-shadow-soft);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.floating-card-row .fl-module-callout:hover {
  transform: translateY(-6px);
  box-shadow: 0 30px 40px rgba(10, 77, 104, 0.18);
}

.floating-card-row .fl-callout-photo img {
  border-radius: var(--astro-radius-md) var(--astro-radius-md) 0 0;
  height: 240px;
  object-fit: cover;
  width: 100%;
}

.floating-card-row .fl-callout-title {
  font-size: 1.5rem;
  color: var(--astro-text-heading);
  margin: 0;
  padding: 1.5rem 1.5rem 0.5rem;
}

.floating-card-row .fl-callout-text {
  color: var(--astro-text);
  padding: 0 1.5rem 1.75rem;
  line-height: 1.6;
}

/* ---------- Join page: split media row ---------- */
.split-media-row .fl-row-content-wrap {
  background: var(--astro-white);
  border: 1px solid var(--astro-border);
  border-radius: var(--astro-radius-lg);
  box-shadow: var(--astro-shadow-soft);
  padding: clamp(2rem, 5vw, 3.5rem);
}

.split-media-row .split-media-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.85rem;
  color: var(--astro-secondary);
  margin-bottom: 0.5rem;
}

.split-media-row .split-media-heading .fl-heading-text {
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--astro-text-heading);
  margin-bottom: 1rem;
}

.split-media-row .split-media-body p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--astro-text);
}

.split-media-row .split-media-photo img {
  border-radius: var(--astro-radius-md);
  box-shadow: var(--astro-shadow-soft);
}

/* ---------- Join page: FAQ accordion ---------- */
.faq-row details {
  background: var(--astro-white);
  border: 1px solid var(--astro-border);
  border-radius: var(--astro-radius-md);
  padding: 1.2rem 1.5rem;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-row details[open] {
  border-color: rgba(10, 77, 104, 0.4);
  box-shadow: var(--astro-shadow-soft);
}

.faq-row summary {
  list-style: none;
  position: relative;
  font-weight: 600;
  color: var(--astro-text-heading);
  cursor: pointer;
  padding-right: 2rem;
}

.faq-row summary::marker,
.faq-row summary::-webkit-details-marker {
  display: none;
}

.faq-row summary::after {
  content: "＋";
  position: absolute;
  right: 0;
  top: 0;
  font-size: 1.25rem;
  color: var(--astro-secondary);
  transition: transform 0.2s ease;
}

.faq-row details[open] summary::after {
  content: "–";
  transform: translateY(-2px);
}

.faq-row p {
  color: var(--astro-text);
  margin: 0.75rem 0 0;
  line-height: 1.6;
}

.astro-card:hover,
.is-style-soft-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px rgba(10, 77, 104, 0.15), 0 6px 12px rgba(0,0,0,0.08);
}

/* ---------- Testimonials ---------- */
.astro-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.astro-testimonial-card {
  background: var(--astro-white);
  border: 1px solid var(--astro-border);
  border-radius: var(--astro-radius-md);
  padding: 24px;
  box-shadow: var(--astro-shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
}

.astro-testimonial-quote {
  font-size: 1.1rem;
  color: var(--astro-text-heading);
  line-height: 1.5;
  margin: 0;
}

.astro-testimonial-author {
  font-weight: 600;
  color: var(--astro-text);
  margin-top: auto;
}

@media (max-width: 640px) {
  .astro-testimonials-grid {
    gap: 16px;
  }

  .astro-testimonial-card {
    padding: 20px;
  }
}

/* ---------- Divider utility ---------- */
.is-style-divider-top { 
  border-top: 1px solid var(--astro-border);
  padding-top: var(--wp--preset--spacing--40);
}

/* ---------- Stats block (ASTRO big numbers) ---------- */
.astro-stat-item { 
  margin: 0; 
  padding: 0;
  text-align: center;
}
.astro-stat-item dt {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  color: var(--wp--preset--color--primary);
  margin-bottom: 0.5rem;
}
.astro-stat-item dd {
  font-size: var(--wp--preset--font-size--l);
  color: var(--astro-text);
  font-weight: 600;
  margin: 0;
}

/* ---------- Smooth scroll + anchor offset ---------- */
html {
  scroll-behavior: smooth;
}

/* Adaptive offset for sticky header + WP admin bar */
:root {
  --header-offset: 100px; /* Adjust in one place if header height changes */
}

:target {
  /* Automatically adds 32px (desktop) or 46px (mobile) when WP admin bar is present */
  scroll-margin-top: calc(var(--header-offset) + var(--wp-admin-bar, 0px));
}

/* WP sets .admin-bar class on <body> when logged in */
body.admin-bar {
  --wp-admin-bar: 32px;
}

/* WP collapses admin bar on small screens */
@media (max-width: 782px) {
  body.admin-bar {
    --wp-admin-bar: 46px;
  }
}

/* ---------- Active TOC highlighting ---------- */
.on-this-page a[aria-current="true"] {
  text-decoration: underline;
  font-weight: 600;
  color: var(--astro-accent);
}

/* ---------- Section backgrounds (ASTRO alternating) ---------- */
.wp-block-group.alignfull {
  position: relative;
}

.wp-block-group.has-paper-background-color {
  background-color: #F9FAFB;
}

.wp-block-group.has-light-gray-background-color {
  background-color: #ECEFF3;
}

/* ---------- Emphasis styling (ASTRO patterns) ---------- */
u {
  text-decoration: underline;
  text-decoration-color: var(--wp--preset--color--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

/* ---------- Link Styles ---------- */
a {
  color: var(--astro-primary);
  transition: color var(--transition-fast);
}
a:hover {
  color: var(--astro-secondary);
}

/* ---------- Headings ---------- */
h1, h2, h3, h4, h5, h6 {
  color: var(--astro-text-heading);
}

/* Global type scale (applies to Astra + Beaver Builder headings) */
h1,
.fl-module-heading h1,
.fl-heading h1 {
  font-size: var(--fs-h1);
  line-height: var(--lh-tight);
}

h2,
.fl-module-heading h2,
.fl-heading h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
}

h3,
.fl-module-heading h3,
.fl-heading h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
}

/* Body & lists */
body,
.fl-rich-text,
.entry-content {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
}

.astro-force-ink {
  color: #1F2937 !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
  filter: none !important;
}

.fl-rich-text ul,
.fl-rich-text ol,
.entry-content ul,
.entry-content ol {
  margin-top: 0.75rem;
  margin-bottom: 1rem;
  color: var(--astro-text);
}

.fl-rich-text li,
.entry-content li {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  margin-bottom: 0.35rem;
}

/* Hero H1s use primary color (ocean blue), not white or accent */
.fl-module-heading h1,
.page-hero-h1,
.fl-heading h1,
.fl-row .fl-module-heading h1,
.fl-row .fl-heading h1 {
  color: var(--astro-primary) !important;
}

/* All H1s should use primary, never white or accent */
h1,
.fl-module-heading h1,
.fl-heading h1 {
  color: var(--astro-primary) !important;
}

/* Override any white text color on headers */
h1[style*="color: white"],
h1[style*="color: #fff"],
h1[style*="color: #ffffff"],
.fl-module-heading h1[style*="color: white"],
.fl-module-heading h1[style*="color: #fff"],
.fl-module-heading h1[style*="color: #ffffff"] {
  color: var(--astro-primary) !important;
}

/* H2s can use primary or heading color */
h2,
.fl-module-heading h2,
.fl-heading h2 {
  color: var(--astro-primary);
}

/* Accent (amber) is ONLY for CTAs, highlights, and hover states - never headers */

/* Stat labels use text color, not accent */
.stats-item-1-label,
.stats-item-2-label,
.stats-item-3-label,
.stats-item-4-label,
.fl-module-rich-text.stats-item-1-label,
.fl-module-rich-text.stats-item-2-label,
.fl-module-rich-text.stats-item-3-label,
.fl-module-rich-text.stats-item-4-label {
  color: var(--astro-text) !important;
}

/* ---------- SEO Fix: Remove Duplicate H1 on BB Pages ---------- */
/* Hide Astra's automatic page title on Beaver Builder pages */
/* This prevents duplicate H1 tags (Astra title + BB hero title) */
.fl-builder-content .entry-header .entry-title {
  display: none !important;
}

/* Also hide the entire entry header on BB pages */
.fl-builder-content .entry-header {
  display: none !important;
}

/* ---------- Footer Styling ---------- */
footer,
.site-footer,
.footer {
  background-color: var(--astro-text-dark);
  color: var(--astro-bg);
}

footer h1, footer h2, footer h3, footer h4, footer h5, footer h6,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6,
.footer h1, .footer h2, .footer h3, .footer h4, .footer h5, .footer h6 {
  color: var(--astro-white) !important;
}

footer a,
.site-footer a,
.footer a {
  color: var(--astro-secondary);
}

footer a:hover,
.site-footer a:hover,
.footer a:hover {
  color: var(--astro-accent);
}

/* ---------- Hero Enhancements ---------- */
.fl-module-heading h1,
h1.entry-title {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  letter-spacing: -0.02em;
}

.fl-module-heading h2 {
  letter-spacing: -0.01em;
}

/* Subtle fade-in for sections */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fl-row {
  animation: fadeInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.fl-row:nth-child(1) { animation-delay: 0.1s; }
.fl-row:nth-child(2) { animation-delay: 0.2s; }
.fl-row:nth-child(3) { animation-delay: 0.3s; }
.fl-row:nth-child(4) { animation-delay: 0.4s; }

/* Enhanced button ripple effect */
.fl-button-wrap a,
.fl-button {
  position: relative;
  overflow: hidden;
}

.fl-button-wrap a::before,
.fl-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.fl-button-wrap a:hover::before,
.fl-button:hover::before {
  width: 300px;
  height: 300px;
}

/* ---------- Reduced motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto; /* Disable smooth scroll */
  }
  
  .wp-block-button__link,
  .astro-card,
  .is-style-soft-card {
    transition: none;
  }
  .wp-block-button__link:hover,
  .astro-card:hover,
  .is-style-soft-card:hover {
    transform: none !important;
  }
  
  .fl-row {
    animation: none;
  }
  
  .fl-button-wrap a::before,
  .fl-button::before {
    display: none;
  }
}

/* ---------- Layout Fix: Remove Nested Margins ---------- */
/* Fix excessive margins causing narrow content (40-50% screen width) */
.wp-block-group.is-layout-constrained,
.wp-block-columns.is-layout-flex {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.wp-block-group.alignwide,
.wp-block-columns.alignwide {
  max-width: 1400px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.wp-block-group.alignfull {
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.wp-block-cover.alignfull {
  padding-left: 48px !important;
  padding-right: 48px !important;
}

.wp-block-group.has-global-padding {
  padding-left: 24px !important;
  padding-right: 24px !important;
}

@media (max-width: 1400px) {
  .wp-block-group.alignwide,
  .wp-block-columns.alignwide {
    max-width: 100% !important;
    padding-left: 48px !important;
    padding-right: 48px !important;
  }
}

@media (max-width: 768px) {
  .wp-block-group,
  .wp-block-columns {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }
}


/* ==========================================================================
   Beaver Builder Homepage Styling (ASTRO)
   ========================================================================== */

/* ---------- CTA buttons ---------- */
.cta-primary .fl-button,
.astro-button {
  background: linear-gradient(120deg, #FABE3C 0%, #F97316 100%) !important;
  color: var(--astro-white) !important;
  border: none !important;
  border-radius: 999px;
  padding: 0.95rem 2.6rem !important;
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 18px 35px rgba(249, 115, 22, 0.45);
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.35);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), filter var(--transition-fast);
}

.cta-primary .fl-button:hover,
.astro-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 26px 40px rgba(10, 77, 104, 0.35);
  filter: brightness(1.05);
}

.astro-button--secondary,
.cta-secondary .fl-button {
  background-color: transparent;
  color: var(--astro-primary) !important;
  border: 1px solid rgba(10, 77, 104, 0.4);
  box-shadow: none;
}

.astro-button--secondary:hover,
.cta-secondary .fl-button:hover {
  background-color: rgba(10, 77, 104, 0.08);
}

.astro-button--dark {
  background-color: var(--astro-primary);
  color: var(--astro-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.astro-button[data-astro-cta],
.cta-primary .fl-button,
.cta-secondary .fl-button {
  position: relative;
}

.astro-button[data-astro-cta]:focus-visible,
.cta-primary .fl-button:focus-visible,
.cta-secondary .fl-button:focus-visible {
  outline: 3px solid #111827;
  outline-offset: 3px;
}

/* ---------- Hero row ---------- */
.page-hero-h1 .fl-heading-text {
  font-size: var(--fs-h1);
  color: var(--astro-ink);
  line-height: var(--lh-tight);
}

.page-hero-h2 .fl-heading-text {
  font-size: var(--fs-h2);
  color: var(--astro-text-heading);
  font-weight: 600;
}

.page-hero-content-left .fl-rich-text {
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  color: var(--astro-text);
  max-width: 640px;
}

.astro-hero-bullets {
  list-style: none !important;
  padding: 1.25rem 1.5rem !important;
  margin: 0.75rem 0 0;
  display: grid;
  gap: 0.65rem;
  background: var(--astro-white);
  border-radius: var(--astro-radius-md);
  border: 1px solid rgba(10, 77, 104, 0.08);
  box-shadow: 0 18px 35px rgba(10, 77, 104, 0.08);
}

.astro-hero-bullets li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--astro-ink);
}

.astro-hero-bullets li::before {
  content: '•';
  color: var(--astro-primary);
  font-size: 1.5rem;
  line-height: 1;
}

.page-hero-button-1 .fl-module-content,
.page-hero-button-1 .fl-button-wrap {
  margin-top: 1rem !important;
}

.page-hero-content-right {
  display: flex;
  justify-content: center;
}

.page-hero-content-right img {
  border-radius: 28px;
  box-shadow: var(--astro-shadow-soft);
  border: 1px solid rgba(10, 77, 104, 0.08);
  padding: clamp(0.5rem, 1vw, 0.9rem);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(232, 242, 247, 0.85));
  max-width: clamp(260px, 38vw, 520px);
  width: 100%;
}

.fl-row-node-y5sjtkzh6xq0 .fl-row-content-wrap {
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.45), transparent 45%),
              linear-gradient(135deg, rgba(10, 77, 104, 0.06), rgba(8, 131, 149, 0.14));
  border-radius: 40px;
  padding: 4.5rem clamp(2rem, 4vw, 4rem);
  border: 1px solid rgba(10, 77, 104, 0.08);
  box-shadow: 0 35px 60px rgba(10, 77, 104, 0.12);
  overflow: hidden;
}

.fl-row-node-y5sjtkzh6xq0 .fl-col-group {
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.fl-row-node-y5sjtkzh6xq0 .fl-col-content {
  padding: 0 !important;
}

.fl-row-node-y5sjtkzh6xq0 .fl-col:nth-child(2) {
  display: flex;
  justify-content: flex-end;
}

.fl-row-node-y5sjtkzh6xq0 .page-hero-content-right img {
  max-width: 520px;
  width: 100%;
  height: auto;
}

@media (max-width: 992px) {
  .fl-row-node-y5sjtkzh6xq0 .fl-row-content-wrap {
    border-radius: 28px;
    padding: 3rem 2rem;
  }

  .fl-row-node-y5sjtkzh6xq0 .fl-col:nth-child(2) {
    justify-content: center;
  }
}

@media (max-width: 991px) {
  .page-hero-content-left .fl-rich-text {
    text-align: left;
  }
}

/* ---------- Stats grid ---------- */
.stats-grid .fl-row-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}

.stats-grid .fl-col {
  background: var(--astro-white);
  border-radius: var(--astro-radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(10, 77, 104, 0.08);
}

[class*="stats-item-"][class*="-value"] .fl-rich-text {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--astro-primary);
  margin: 0;
  line-height: 1.1;
}

[class*="stats-item-"][class*="-label"] .fl-rich-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--astro-text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ---------- Feature cards (Programs grid) ---------- */
.feature-grid {
  background: linear-gradient(140deg, rgba(10, 77, 104, 0.08), rgba(8, 131, 149, 0.05));
  border-radius: var(--astro-radius-lg);
  padding: 4rem 3vw !important;
}

.feature-grid-heading .fl-heading-text {
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--astro-text-heading);
}

.feature-grid-subhead {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  color: var(--astro-text);
}

.feature-card {
  position: relative;
  border-radius: var(--astro-radius-lg) !important;
  overflow: hidden;
  min-height: 420px;
  box-shadow: var(--astro-shadow-soft);
  background: var(--astro-white);
  border: 1px solid rgba(10, 77, 104, 0.12);
}

.feature-card::after {
  content: none;
}

.feature-card .fl-col-content {
  position: relative;
  z-index: 1;
  padding: 2rem 2.25rem 2.5rem;
  color: var(--astro-text);
}

.feature-card .fl-heading-text,
.feature-card .fl-rich-text,
.feature-card p,
.feature-card li {
  color: var(--astro-text-heading);
}

.feature-card .fl-button {
  border-radius: 999px;
  padding: 0.65rem 2rem;
  border: none;
  background: var(--astro-primary);
  color: var(--astro-white);
  box-shadow: var(--astro-shadow-soft);
}

.fl-node-programs_row .feature-card {
  background: linear-gradient(160deg, #062E3F 0%, #0A4D68 60%, #0F6E8B 100%);
  border: none;
}

.fl-node-programs_row .feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.15), transparent 55%);
  opacity: 0.85;
}

.fl-node-programs_row .feature-card,
.fl-node-programs_row .feature-card .fl-col-content,
.fl-node-programs_row .feature-card .fl-heading-text,
.fl-node-programs_row .feature-card .fl-rich-text,
.fl-node-programs_row .feature-card p,
.fl-node-programs_row .feature-card li,
.fl-node-programs_row .feature-card a {
  color: rgba(255, 255, 255, 0.95) !important;
}

.fl-node-programs_row .feature-card .fl-button {
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  color: var(--astro-white);
  backdrop-filter: blur(6px);
}

.column-overlay-link {
  position: absolute;
  inset: 0;
  z-index: 2;
}

/* ---------- Split CTA row ---------- */
.split-cta-heading .fl-heading-text {
  font-size: clamp(2rem, 3vw, 2.75rem);
  color: var(--astro-text-heading);
  margin-bottom: 1.5rem;
}

.split-cta-left,
.split-cta-right {
  background: var(--astro-white);
  border-radius: var(--astro-radius-md);
  padding: 2.25rem;
  box-shadow: var(--astro-shadow-soft);
  border: 1px solid rgba(10, 77, 104, 0.08);
}

.split-cta-left-title .fl-heading-text,
.split-cta-right-title .fl-heading-text {
  font-size: 1.5rem;
  color: var(--astro-text-heading);
}

.split-cta-left-body .fl-list,
.split-cta-right-body .fl-list {
  gap: 0.65rem;
}

.split-cta-left-body .fl-list-item-content-text p,
.split-cta-right-body .fl-list-item-content-text p {
  color: var(--astro-text) !important; /* ensure dark text even if module sets a lighter color */
  margin: 0;
  font-size: 1rem;
}

.split-cta-left-body,
.split-cta-right-body {
  color: var(--astro-text) !important;
}

/* Maximum specificity to override module inline styles */
.split-cta-left-body .fl-list,
.split-cta-left-body .fl-list *,
.split-cta-right-body .fl-list,
.split-cta-right-body .fl-list *,
.split-cta-left-body .fl-list-item,
.split-cta-right-body .fl-list-item,
.split-cta-left-body .fl-list-item *,
.split-cta-right-body .fl-list-item *,
.split-cta-left-body li,
.split-cta-right-body li,
.split-cta-left-body li *,
.split-cta-right-body li *,
.split-cta-left-body .uabb-list,
.split-cta-left-body .uabb-list *,
.split-cta-right-body .uabb-list,
.split-cta-right-body .uabb-list *,
.split-cta-left-body .uabb-list-content,
.split-cta-right-body .uabb-list-content,
.split-cta-left-body .uabb-list-content *,
.split-cta-right-body .uabb-list-content *,
.split-cta-left-body .uabb-list-desc,
.split-cta-right-body .uabb-list-desc,
.split-cta-left-body .uabb-list-desc *,
.split-cta-right-body .uabb-list-desc *,
.split-cta-left-body .fl-list-item-content-text,
.split-cta-right-body .fl-list-item-content-text,
.split-cta-left-body .fl-list-item-content-text *,
.split-cta-right-body .fl-list-item-content-text * {
  color: var(--astro-text) !important;
  opacity: 1 !important;
}

/* Add readable backgrounds to each list item (both columns) */
.split-cta-left-body .fl-list-item,
.split-cta-right-body .fl-list-item,
.split-cta-left-body .uabb-list .uabb-list-item,
.split-cta-right-body .uabb-list .uabb-list-item {
  /* Slight tint so dark text stands out even if a theme forces light text */
  background: #F6FAFF; /* light ocean-tinted paper */
  border: 1px solid rgba(10, 77, 104, 0.10);
  border-radius: 12px;
  padding: 10px 14px;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
  opacity: 1 !important;          /* kill inherited low opacity */
  filter: none !important;         /* kill accidental filters */
  color: #1F2937 !important;       /* force dark charcoal text */
  mix-blend-mode: normal !important;
}

.split-cta-left-body .fl-list,
.split-cta-right-body .fl-list,
.split-cta-left-body .uabb-list,
.split-cta-right-body .uabb-list {
  display: grid;
  gap: 10px;
}

/* Ensure icons are fully opaque and properly colored */
.split-cta-left-body .fl-list-item i,
.split-cta-right-body .fl-list-item i,
.split-cta-left-body .uabb-list .uabb-list-icon i,
.split-cta-right-body .uabb-list .uabb-list-icon i {
  color: var(--astro-accent) !important;
  opacity: 1 !important;
  filter: none !important;
}

/* Last-resort hardening by module node id (BB adds .fl-node-<id> on wrapper) */
.fl-node-0yhpds7o8bef, .fl-node-0yhpds7o8bef *,
.fl-node-15ichp49kvn0, .fl-node-15ichp49kvn0 * {
  color: #1F2937 !important;
  opacity: 1 !important;
  mix-blend-mode: normal !important;
}

.split-cta-left-button .fl-button,
.split-cta-right-button .fl-button {
  border-radius: 999px;
  width: auto;
}

.split-cta-left-media img,
.split-cta-right-media img {
  border-radius: var(--astro-radius-md);
  box-shadow: var(--astro-shadow-soft);
}

@media (max-width: 900px) {
  .split-cta-left,
  .split-cta-right {
    padding: 1.75rem;
  }
}

/* ---------- Commitments grid ---------- */
.commitments-row {
  background: linear-gradient(135deg, #f6faff, #f0f4ff);
  border-radius: var(--astro-radius-lg);
  padding: 4rem 3vw !important;
  border: 1px solid rgba(10, 77, 104, 0.08);
}

.commitments-heading .fl-heading-text {
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--astro-text-heading);
  margin-bottom: 0.5rem;
}

.commitments-subhead .fl-rich-text p {
  font-size: 1.1rem;
  color: var(--astro-text);
  max-width: 720px;
  margin: 0 auto;
}

.commitment-left-col .fl-col-content,
.commitment-right-col .fl-col-content {
  background: var(--astro-white);
  border-radius: var(--astro-radius-md);
  padding: 2.25rem;
  box-shadow: var(--astro-shadow-soft);
  border: 1px solid rgba(8, 131, 149, 0.08);
}

.commitment-left-body p,
.commitment-right-body p {
  margin-bottom: 1rem;
  color: var(--astro-text);
  line-height: 1.65;
}

.commitment-left-body p strong,
.commitment-right-body p strong {
  color: var(--astro-text-heading);
}

@media (max-width: 900px) {
  .commitment-left-col .fl-col-content,
  .commitment-right-col .fl-col-content {
    padding: 1.75rem;
  }
}

.astro-faq {
  background: var(--astro-bg-secondary);
  border-radius: var(--astro-radius-lg);
  padding: 3rem;
  box-shadow: var(--astro-shadow-soft);
  border: 1px solid rgba(10, 77, 104, 0.08);
}

.astro-faq details {
  border: 1px solid var(--astro-border);
  border-radius: var(--astro-radius-sm);
  padding: 1rem 1.25rem;
  background: var(--astro-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.astro-faq details + details {
  margin-top: 1rem;
}

.astro-faq summary {
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--astro-ink);
}

.astro-faq summary:focus-visible {
  outline: 3px solid var(--astro-accent);
  outline-offset: 4px;
}

.astro-faq details[open] {
  border-color: rgba(10, 77, 104, 0.3);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.astro-faq p {
  margin: 0.75rem 0 0;
  color: var(--astro-body);
}

@media (max-width: 640px) {
  .astro-faq {
    padding: 2rem;
  }
}

/* ---------- CTA band ---------- */
.cta-band-row {
  background: radial-gradient(circle at top right, rgba(8, 131, 149, 0.18), transparent 45%),
              var(--astro-primary);
  color: var(--astro-white);
  border-radius: var(--astro-radius-lg);
  padding: 3rem 4vw !important;
}

.cta-band-body .fl-rich-text {
  color: var(--astro-white);
  font-size: 1.2rem;
  max-width: 540px;
}

.cta-band-form .astro-button {
  background: var(--astro-white);
  color: var(--astro-primary) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

@media (max-width: 782px) {
  .cta-band-row .fl-col-group {
    gap: 1.5rem;
  }
}

