/* ============================================================
   FlashQuery — Custom Stylesheet
   Bootstrap 5.3 companion  |  Glassmorphism + Light Modern
   ============================================================ */

/* ---------- 0. CSS Custom Properties ---------- */

:root {
  --fq-primary: #40355B;
  --fq-primary-light: #5d4f7a;
  --fq-primary-dark: #2e2541;
  --fq-accent: #D36A44;
  --fq-accent-light: #e08b6c;
  --fq-accent-warm: #FFEDCD;
  --fq-success: #10b981;
  --fq-warning: #D36A44;
  --fq-white: #ffffff;
  --fq-gray-50: #faf9f8;
  --fq-gray-100: #f3f1ef;
  --fq-gray-200: #e5e2de;
  --fq-gray-300: #cbc7c1;
  --fq-gray-400: #948f88;
  --fq-gray-500: #6b6560;
  --fq-gray-600: #4d4843;
  --fq-gray-700: #36322e;
  --fq-gray-800: #211f1c;
  --fq-gray-900: #121110;
  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-border: rgba(255, 255, 255, 0.35);
  --glass-blur: 16px;
  --glass-shadow: 0 8px 32px rgba(64, 53, 91, 0.08);
  --section-py: 6rem;
  --radius-sm: 0.5rem;
  --radius-md: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --font-heading: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ---------- 1. Global ---------- */

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--fq-gray-700);
  background: var(--fq-gray-50);
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--fq-gray-900);
  font-weight: 400;
}

h4, h5, h6 {
  font-family: var(--font-body);
  color: var(--fq-gray-900);
  font-weight: 700;
}

.text-gradient {
  background: linear-gradient(135deg, var(--fq-accent), var(--fq-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  margin-bottom: 1rem;
}

.section-subheading {
  font-size: 1.125rem;
  color: var(--fq-gray-500);
  max-width: 640px;
  margin: 0 auto 3rem;
}

section {
  padding: var(--section-py) 0;
  position: relative;
}

/* subtle bg noise / texture overlay */

.bg-dots {
  background-image: radial-gradient(circle, var(--fq-gray-200) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ---------- 2. Navbar ---------- */

.navbar {
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  background: rgba(255,255,255,1) !important;
  border-bottom: 1px solid var(--glass-border);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.navbar-brand {
  display: flex;
  align-items: center;
  padding-top: 0.2rem;
  padding-bottom: 0.2rem;
}

.navbar-brand img {
  height: 34px;
  width: auto;
}

/* Footer logo — slightly larger */

footer .footer-brand-img {
  height: 28px;
  width: auto;
  margin-bottom: 1rem;
  opacity: 0.9;
  filter: brightness(10);
}

/* Higher specificity (.navbar .nav-link) avoids needing !important to beat Bootstrap */

.navbar .nav-link {
  font-weight: 500;
  color: var(--fq-gray-600);
  transition: color 0.2s ease;
  font-size: 0.925rem;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--fq-primary);
}

.navbar .nav-link.active {
  position: relative;
}

/* Accent underline indicator for active nav item */

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.4rem;
  right: 0.4rem;
  height: 2px;
  background: var(--fq-accent);
  border-radius: 1px;
}

/* ---------- 3. Buttons ---------- */

.btn-fq-primary {
  background: linear-gradient(135deg, var(--fq-primary), var(--fq-primary-light));
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.75rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(64, 53, 91, 0.25);
}

.btn-fq-primary:hover {
  transform: translateY(-2px);
  box-shadow: -1 6px 20px rgba(64, 53, 91, 0.35);
  color: #fff;
}

.btn-fq-outline {
  background: transparent;
  color: var(--fq-primary);
  border: 2px solid var(--fq-primary);
  border-radius: var(--radius-sm);
  padding: 0.7rem 2rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-fq-outline:hover {
  background: var(--fq-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-fq-light {
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--fq-gray-700);
  border-radius: var(--radius-sm);
  padding: 0.7rem 1.75rem;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.btn-fq-light:hover {
  background: rgba(255,255,255,0.85);
  transform: translateY(-2px);
}

/* ---------- 4. Glass Card ---------- */

.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(64, 53, 91, 0.12);
}

.glass-card .card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.glass-card .card-icon.icon-purple {
  background: linear-gradient(135deg, rgba(64,53,91,0.12), rgba(93,79,122,0.12));
  color: var(--fq-primary);
}

.glass-card .card-icon.icon-orange {
  background: linear-gradient(135deg, rgba(211,106,68,0.12), rgba(224,139,108,0.12));
  color: var(--fq-accent);
}

.glass-card .card-icon.icon-emerald {
  background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(52,211,153,0.12));
  color: var(--fq-success);
}

.glass-card .card-icon.icon-warm {
  background: linear-gradient(135deg, rgba(255,237,205,0.5), rgba(211,106,68,0.1));
  color: var(--fq-accent);
}

.glass-card h5 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.glass-card p {
  font-size: 0.925rem;
  color: var(--fq-gray-500);
  line-height: 1.65;
}

/* ---------- 5. Hero ---------- */

#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #faf7f3 0%, #fff6eb 40%, #faf9f8 100%);
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64,53,91,0.06) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

#hero::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211,106,68,0.05) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--fq-primary);
  margin-bottom: 1.5rem;
}

.hero-badge i {
  font-size: 0.75rem;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--fq-gray-500);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-visual {
  position: relative;
}

.hero-visual .hero-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(64,53,91,0.05), rgba(211,106,68,0.04));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--fq-gray-400);
  text-align: center;
  padding: 2rem;
}

/* floating accent elements behind hero visual */

.hero-float {
  position: absolute;
  border-radius: var(--radius-lg);
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  padding: 1rem 1.25rem;
  box-shadow: var(--glass-shadow);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--fq-gray-700);
  z-index: 2;
}

.hero-float.float-1 {
  top: 10%;
  right: -30px;
  animation: floatY 4s ease-in-out infinite;
}

.hero-float.float-2 {
  bottom: 15%;
  left: -20px;
  animation: floatY 5s ease-in-out 1s infinite;
}

@keyframes floatY {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ---------- 6. Logos / Trust Bar ---------- */

#trust-bar {
  padding: 3rem 0;
  background: var(--fq-white);
  border-top: 1px solid var(--fq-gray-100);
  border-bottom: 1px solid var(--fq-gray-100);
}

#trust-bar .trust-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--fq-gray-400);
  margin-bottom: 1.5rem;
}

.trust-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.trust-logos .logo-placeholder {
  width: 120px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--fq-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--fq-gray-400);
  font-weight: 600;
}

/* ---------- 7. Problem Section ---------- */

#problem {
  background: var(--fq-white);
}

.problem-grid .glass-card {
  height: 100%;
}

/* ---------- 8. Platform / How it Works ---------- */

#platform {
  background: linear-gradient(180deg, var(--fq-gray-50) 0%, #faf5ef 100%);
}

.platform-step {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.platform-step .step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fq-primary), var(--fq-primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.platform-step h5 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.platform-step p {
  font-size: 0.9rem;
  color: var(--fq-gray-500);
  margin: 0;
}

.arch-placeholder {
  width: 100%;
  min-height: 380px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(64,53,91,0.04), rgba(211,106,68,0.03));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fq-gray-400);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

/* ---------- 9. Capabilities ---------- */

#capabilities {
  background: var(--fq-white);
}

/* Left column — scrollable list of capability titles */

.cap-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cap-list-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  width: 100%;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fq-gray-600);
  line-height: 1.3;
}

.cap-list-item:hover {
  background: var(--fq-gray-50);
  border-color: var(--fq-gray-200);
  color: var(--fq-gray-800);
}

.cap-list-item.active {
  background: rgba(64, 53, 91, 0.06);
  border-color: var(--fq-primary);
  color: var(--fq-primary);
}

/* Small icon badge on each list row */

.cap-list-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

/* Chevron — visible only on hover / active */

.cap-list-arrow {
  margin-left: auto;
  font-size: 0.7rem;
  color: var(--fq-gray-400);
  opacity: 0;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.cap-list-item:hover .cap-list-arrow {
  opacity: 1;
}

.cap-list-item.active .cap-list-arrow {
  opacity: 1;
  color: var(--fq-primary);
}

/* Right column — detail panels */

.cap-panel {
  display: none;
}

.cap-panel.active {
  display: block;
  animation: fadeUp 0.25s ease;
}

/* Detail card — glassmorphism without hover transform */

.cap-detail {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  padding: 2.5rem;
  min-height: 200px;
}

.cap-detail h4 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 400;
  color: var(--fq-gray-900);
  margin-bottom: 1rem;
}

.cap-detail p {
  font-size: 1.05rem;
  color: var(--fq-gray-600);
  line-height: 1.75;
  margin: 0;
}

/* On tablet, show list as a 2-column grid above detail */

@media (max-width: 991.98px) {
  .cap-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }

  .cap-list-item {
    width: auto;
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
  }

  .cap-list-arrow {
    display: none;
  }
}

/* On phone, collapse to a single column */

@media (max-width: 575.98px) {
  .cap-list {
    grid-template-columns: 1fr;
  }
}

/* ---------- 10. Solutions / ICPs ---------- */

#solutions {
  background: linear-gradient(180deg, var(--fq-gray-50) 0%, var(--fq-white) 100%);
}

.solution-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--fq-gray-200);
  background: var(--fq-white);
  color: var(--fq-gray-600);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.solution-tab:hover, .solution-tab.active {
  background: var(--fq-primary);
  color: #fff;
  border-color: var(--fq-primary);
}

.solution-panel {
  display: none;
}

.solution-panel.active {
  display: block;
  animation: fadeUp 0.4s ease;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- 11. Differentiators ---------- */

#differentiators {
  background: var(--fq-primary-dark);
  color: var(--fq-gray-200);
}

#differentiators h2 {
  color: var(--fq-white);
}

#differentiators .section-subheading {
  color: var(--fq-gray-400);
}

#differentiators .glass-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}

#differentiators .glass-card:hover {
  background: rgba(255,255,255,0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

#differentiators .glass-card h5 {
  color: var(--fq-white);
}

#differentiators .glass-card p {
  color: var(--fq-gray-400);
}

/* ---------- 12. Governance (FlashGuard) ---------- */

#governance {
  background: linear-gradient(160deg, #faf5ef 0%, var(--fq-white) 100%);
}

.governance-visual {
  width: 100%;
  min-height: 320px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(64,53,91,0.06), rgba(211,106,68,0.05));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fq-gray-400);
  font-size: 0.9rem;
  text-align: center;
  padding: 2rem;
}

/* ---------- 13. Architecture / Flow ---------- */

#architecture {
  background: var(--fq-white);
}

.flow-step-card {
  text-align: center;
  padding: 1.5rem;
}

.flow-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fq-gray-300);
  font-size: 1.5rem;
}

/* ---------- 14. Testimonials / Social Proof ---------- */

#testimonials {
  background: var(--fq-gray-50);
}

.testimonial-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  height: 100%;
  box-shadow: var(--glass-shadow);
}

.testimonial-card .quote {
  font-size: 1rem;
  font-style: italic;
  color: var(--fq-gray-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial-card .author {
  font-weight: 700;
  color: var(--fq-gray-800);
  font-size: 0.9rem;
}

.testimonial-card .role {
  font-size: 0.8rem;
  color: var(--fq-gray-400);
}

/* ---------- 15. CTA Section ---------- */

#cta {
  background: linear-gradient(135deg, var(--fq-primary-dark), var(--fq-primary));
  color: #fff;
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
  top: -300px;
  right: -200px;
  pointer-events: none;
}

#cta h2 {
  color: #fff;
}

#cta p {
  color: rgba(255,255,255,0.8);
}

.btn-cta-white {
  background: #fff;
  color: var(--fq-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 2.25rem;
  font-weight: 700;
  font-size: 1rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-cta-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,255,255,0.2);
  color: var(--fq-primary);
  background: #fff;
}

/* ---------- 16. Footer ---------- */

footer {
  background: var(--fq-gray-900);
  color: var(--fq-gray-400);
  padding: 4rem 0 2rem;
}

footer h6 {
  color: var(--fq-gray-200);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}

footer a {
  color: var(--fq-gray-400);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--fq-accent);
}

footer .footer-brand {
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--fq-white);
}

footer .footer-divider {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin: 2rem 0;
}

footer .footer-bottom {
  font-size: 0.8rem;
}

/* ---------- 17. Scroll Animations ---------- */

/* Opaque: Change .fade-up from 1 -> 0 to get scroll animations working */

.fade-up {
  opacity: 1;
  transform: translateY(24px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger children — targets col-* wrappers containing .fade-up */

.stagger > :nth-child(2) .fade-up {
  transition-delay: 0.1s;
}

.stagger > :nth-child(3) .fade-up {
  transition-delay: 0.2s;
}

.stagger > :nth-child(4) .fade-up {
  transition-delay: 0.3s;
}

.stagger > :nth-child(5) .fade-up {
  transition-delay: 0.4s;
}

.stagger > :nth-child(6) .fade-up {
  transition-delay: 0.5s;
}

.stagger > :nth-child(7) .fade-up {
  transition-delay: 0.6s;
}

.stagger > :nth-child(8) .fade-up {
  transition-delay: 0.7s;
}

.stagger > :nth-child(9) .fade-up {
  transition-delay: 0.8s;
}

/* ---------- 18. Utility ---------- */

.text-purple {
  color: var(--fq-primary) !important;
}

.text-orange {
  color: var(--fq-accent) !important;
}

/* Legacy aliases — kept for Bootstrap Studio compat if needed */

.bg-gradient-soft {
  background: linear-gradient(160deg, #faf5ef 0%, #fff6eb 40%, #faf9f8 100%);
}

.rounded-xl {
  border-radius: var(--radius-xl) !important;
}

/* pill / tag */

.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.tag-purple {
  background: rgba(64,53,91,0.1);
  color: var(--fq-primary);
}

.tag-orange {
  background: rgba(211,106,68,0.1);
  color: var(--fq-accent);
}

/* ---------- 19. Responsive ---------- */

@media (max-width: 991.98px) {
  :root {
    --section-py: 4rem;
  }
}

@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .section-heading {
    font-size: 2rem;
  }
}

@media (max-width: 991.98px) {
  .hero-visual {
    margin-top: 3rem;
  }
}

@media (max-width: 991.98px) {
  .hero-float {
    display: none;
  }
}

@media (max-width: 767.98px) {
  :root {
    --section-py: 3rem;
  }
}

@media (max-width: 767.98px) {
  .hero-title {
    font-size: 2.15rem;
  }
}

@media (max-width: 767.98px) {
  .section-heading {
    font-size: 1.75rem;
  }
}

@media (max-width: 767.98px) {
  .glass-card {
    padding: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .trust-logos {
    gap: 1.5rem;
  }
}

@media (max-width: 767.98px) {
  .flow-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 575.98px) {
  .hero-subtitle {
    font-size: 1rem;
  }
}

@media (max-width: 575.98px) {
  .btn-fq-primary, .btn-fq-outline {
    padding: 0.65rem 1.5rem;
    font-size: 0.875rem;
  }
}


/* ============================================================
   20. Blog — Post Pages
   ============================================================ */

/* ---------- Blog Post Header ---------- */

.blog-header {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: linear-gradient(160deg, #faf7f3 0%, #fff6eb 40%, #faf9f8 100%);
  position: relative;
  overflow: hidden;
}

.blog-header::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 53, 91, 0.05) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.blog-header::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 106, 68, 0.04) 0%, transparent 70%);
  bottom: -150px;
  left: -80px;
  pointer-events: none;
}

.blog-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.blog-meta .author-name {
  font-weight: 600;
  color: var(--fq-gray-700);
  font-size: 0.95rem;
}

.blog-meta .meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--fq-gray-300);
}

.blog-meta .meta-item {
  font-size: 0.875rem;
  color: var(--fq-gray-500);
}

.blog-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.5px;
  color: var(--fq-gray-900);
  margin-bottom: 1.25rem;
}

.blog-subtitle {
  font-size: 1.15rem;
  color: var(--fq-gray-500);
  max-width: 680px;
  line-height: 1.65;
}

/* ---------- Blog Post Header: Hero Image Variant ---------- */

.blog-header.blog-header-hero {
  background: var(--fq-primary-dark, #2e2541);
}

/* Background image layer — Ken Burns slow pan */

.blog-header.blog-header-hero::after {
  content: "";
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  border-radius: 0;
  background: var(--blog-hero-image) center / cover no-repeat;
  animation: blogHeroPan 30s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes blogHeroPan {
  0%   { transform: translate(0, 0); }
  25%  { transform: translate(-4%, -2.5%); }
  50%  { transform: translate(-1%, -4%); }
  75%  { transform: translate(-4.5%, -1%); }
  100% { transform: translate(0, 0); }
}

/* Gradient overlay — left-heavy to keep text readable */

.blog-header.blog-header-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  background: linear-gradient(
    to right,
    rgba(46, 37, 65, 0.92) 0%,
    rgba(46, 37, 65, 0.78) 55%,
    rgba(46, 37, 65, 0.35) 100%
  );
  z-index: 1;
}

.blog-header.blog-header-hero > .container {
  position: relative;
  z-index: 2;
}

/* Text colour overrides for hero variant */

.blog-header.blog-header-hero .tag {
  background: rgba(211, 106, 68, 0.25);
  color: #fbbf90;
  border: 1px solid rgba(211, 106, 68, 0.35);
}

.blog-header.blog-header-hero .blog-title {
  color: #fff;
  text-shadow:
    0 2px 12px rgba(0, 0, 0, 0.5),
    0 1px 3px rgba(0, 0, 0, 0.3);
}

.blog-header.blog-header-hero .blog-subtitle {
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3);
}

.blog-header.blog-header-hero .blog-meta .author-name {
  color: rgba(255, 255, 255, 0.9);
}

.blog-header.blog-header-hero .blog-meta .meta-item {
  color: rgba(255, 255, 255, 0.6);
}

.blog-header.blog-header-hero .blog-meta .meta-divider {
  background: rgba(255, 255, 255, 0.35);
}

/* ---------- Blog Post Hero Image (standalone, not header) ---------- */

.blog-hero-img {
  width: 100%;
  aspect-ratio: 16/7;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(64, 53, 91, 0.05), rgba(211, 106, 68, 0.04));
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: var(--fq-gray-400);
  text-align: center;
  padding: 2rem;
  margin-top: 2.5rem;
  overflow: hidden;
}

.blog-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-xl);
}

/* ---------- Blog Post Body Content ---------- */

.blog-content {
  padding: 4rem 0 5rem;
}

.blog-content .article-body {
  max-width: 720px;
  margin: 0 auto;
}

.blog-content .article-body p {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--fq-gray-700);
  margin-bottom: 1.5rem;
}

.blog-content .article-body h2 {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--fq-gray-900);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
}

.blog-content .article-body h3 {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 400;
  color: var(--fq-gray-900);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.blog-content .article-body h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fq-gray-800);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.blog-content .article-body ul,
.blog-content .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-content .article-body li {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--fq-gray-700);
  margin-bottom: 0.5rem;
}

.blog-content .article-body blockquote {
  border-left: 4px solid var(--fq-accent);
  background: rgba(255, 237, 205, 0.25);
  padding: 1.25rem 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--fq-gray-600);
  font-style: italic;
}

.blog-content .article-body a {
  color: var(--fq-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.blog-content .article-body a:hover {
  color: var(--fq-accent);
}

.blog-content .article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 2rem 0;
}

.blog-content .article-body strong {
  color: var(--fq-gray-800);
  font-weight: 700;
}

/* Callout / highlight box */

.blog-content .callout {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
}

.blog-content .callout p:last-child {
  margin-bottom: 0;
}

/* ---------- Blog Post Sidebar ---------- */

.blog-sidebar .sidebar-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.blog-sidebar .sidebar-card h6 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--fq-gray-500);
  margin-bottom: 1rem;
}

/* ---------- Author Card ---------- */

.author-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  margin-top: 3rem;
}

.author-card .author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--fq-primary), var(--fq-primary-light));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.author-card .author-info .name {
  font-weight: 700;
  color: var(--fq-gray-800);
  font-size: 0.95rem;
}

.author-card .author-info .bio {
  font-size: 0.85rem;
  color: var(--fq-gray-500);
  line-height: 1.5;
}

/* ---------- Blog Post Navigation & Share ---------- */

.blog-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--fq-gray-200);
}

.blog-nav .back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--fq-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.blog-nav .back-link:hover {
  color: var(--fq-accent);
}

.share-links {
  display: flex;
  gap: 0.75rem;
}

.share-links a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--fq-gray-100);
  color: var(--fq-gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s;
}

.share-links a:hover {
  background: var(--fq-primary);
  color: #fff;
}

/* ---------- Related Posts ---------- */

.related-posts {
  padding: 4rem 0;
  background: var(--fq-white);
  border-top: 1px solid var(--fq-gray-100);
}

.related-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(64, 53, 91, 0.12);
  color: inherit;
}

.related-card .card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(64, 53, 91, 0.05), rgba(211, 106, 68, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fq-gray-400);
  font-size: 0.8rem;
}

.related-card .card-body {
  padding: 1.25rem;
}

.related-card .card-body h5 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.related-card .card-body p {
  font-size: 0.85rem;
  color: var(--fq-gray-500);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Blog CTA Banner (inline) ---------- */

.blog-cta {
  background: linear-gradient(135deg, var(--fq-primary-dark), var(--fq-primary));
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  color: #fff;
  text-align: center;
  margin: 3rem 0;
}

.blog-cta h3 {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  margin-bottom: 1.25rem;
}

/* ---------- Blog Post — Responsive ---------- */

@media (max-width: 991.98px) {
  .blog-header {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }

  .blog-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .blog-header {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .blog-title {
    font-size: 1.75rem;
  }

  .blog-content .article-body p,
  .blog-content .article-body li {
    font-size: 1rem;
  }

  .blog-content .article-body h2 {
    font-size: 1.5rem;
  }

  .blog-content .article-body h3 {
    font-size: 1.25rem;
  }

  .author-card {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================================
   21. Blog — Listing Page
   ============================================================ */

/* ---------- Blog Listing Header ---------- */

.blog-listing-header {
  padding-top: 8rem;
  padding-bottom: 4rem;
  background: linear-gradient(160deg, #faf7f3 0%, #fff6eb 40%, #faf9f8 100%);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.blog-listing-header::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 53, 91, 0.05) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  pointer-events: none;
}

.blog-listing-header::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 106, 68, 0.04) 0%, transparent 70%);
  bottom: -150px;
  left: -80px;
  pointer-events: none;
}

.blog-listing-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 400;
  color: var(--fq-gray-900);
  margin-bottom: 1rem;
}

.blog-listing-header p {
  font-size: 1.15rem;
  color: var(--fq-gray-500);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ---------- Post Grid ---------- */

.blog-grid {
  padding: 4rem 0 5rem;
}

/* ---------- Post Card ---------- */

.post-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(64, 53, 91, 0.12);
  color: inherit;
}

.post-card .card-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, rgba(64, 53, 91, 0.05), rgba(211, 106, 68, 0.04));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fq-gray-400);
  font-size: 0.8rem;
  flex-shrink: 0;
  overflow: hidden;
}

.post-card .card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.post-card .card-content .post-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--fq-gray-400);
  margin-bottom: 0.75rem;
}

.post-card .card-content .post-meta .meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--fq-gray-300);
}

.post-card .card-content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--fq-gray-900);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.post-card .card-content .excerpt {
  font-size: 0.925rem;
  color: var(--fq-gray-500);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.post-card .card-content .read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fq-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
}

.post-card:hover .read-more {
  color: var(--fq-accent);
}

/* ---------- Blog Listing — Responsive ---------- */

@media (max-width: 991.98px) {
  .blog-listing-header {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
}

@media (max-width: 767.98px) {
  .blog-listing-header {
    padding-top: 6rem;
    padding-bottom: 2rem;
  }

  .blog-listing-header h1 {
    font-size: 2rem;
  }
}

/* ============================================================
   22. Bootstrap Studio Overrides
   Kept minimal — the spacing overrides that BSS exported
   (mt-1…mb-5 at inflated rem values) have been removed because
   they conflicted with Bootstrap's own utility classes throughout
   the site (e.g. footer list items using mb-2 got 3rem instead
   of Bootstrap's 0.5rem). Spacing is now Bootstrap's standard
   scale. The two alignment helpers below match Bootstrap's values
   and are kept only for any BSS-generated markup that references
   them explicitly.
   ============================================================ */

.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.ms-auto { margin-left: auto !important; }
