/**

Theme Name: QBD Connect (Astra Child)

Theme URI: http://test.qbdconnect.com/astra-child

Description: This is a custom child theme based upon Astra.

Author: Erich Leipold

Author URI: https://www.workhorseintegrations.com

Template: astra

Version: 1.0.0

*/

/* Step 2: Make sure its parent has a stacking context for it to live in */
.hero-bg-art parent, 
.wp-block-cover,
.hfeed,
.nv-index-posts {
  position: relative !important;
  overflow: visible !important;
}

/* Step 3: Keep actual hero content (text, buttons) above the art */
.hero-bg-art ~ * {
  position: relative !important;
  z-index: 1 !important;
}
.hero-grid {
  position: absolute !important;
  top: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 50%, black 20%, transparent 80%);
}
.orb {
  position: absolute !important;
  width: 400px !important;   /* orbs need explicit size */
  height: 400px !important;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5 !important;
  z-index: 0 !important;
  pointer-events: none;
}

.orb-1 { background: #298719; top: -100px; left: 70%; }
.orb-2 { background: #1a1a1a; top: 16%; right: 35%; }
.orb-3 { background: #666666; top: 80px; left: 10%; }
.header-main-outer-wrap,
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  z-index: 9999 !important;
}

/* Push page content down so it doesn't hide under the fixed header */
.hfeed.site,
#content,
.neve-main {
  margin-top: 80px !important; /* adjust this to match your header's height */
}
.header-main-outer-wrap,
.site-header {
  background-color: #003D5C !important; /* adjust color to match your theme */
  backdrop-filter: blur(8px); /* optional frosted glass effect */
}
/* Transparent state (at top of page) */
.header-main-outer-wrap,
.site-header {
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease !important;
  background-color: rgba(0, 61, 92, 0.5) !important;  /* was 0.75 — lower = more glass, higher = more solid */
}

/* Solid state (when scrolled) - class added by JS below */
.site-header.scrolled,
.header-main-outer-wrap.scrolled {
  background-color: rgba(0, 61, 92, 0.85) !important;  /* was 0.75 — lower = more glass, higher = more solid */
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}
/* Push footer to the bottom */
.ast-site {
  display: flex !important;
  flex-direction: column !important;
  min-height: 100vh !important;
}

.ast-site .site-content {
  flex: 1 !important;
}
/* Hero right visual */
.hero-visual {
  position: relative; display: flex; justify-content: center; align-items: center;
  opacity: 0; animation: fadeUp 0.8s 0.7s forwards;
}
.flow-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 16px; padding: 1.5rem 1.75rem;
  color: #fff; width: 220px; position: relative;
  transition: border-color 0.3s, background 0.3s;
} 
.flow-card:hover { border-color: rgba(111,184,62,0.4); background: rgba(255,255,255,0.09); }
.flow-card-icon {
  width: 42px; height: 42px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.75rem; font-size: 1.25rem;
}
.flow-card h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.3rem; }
.flow-card p { font-size: 0.75rem; color: rgba(255,255,255,0.45); line-height: 1.5; }
.flow-connector {
  position: relative; left: 50%; top: 100%; transform: translateX(-50%);
  width: 2px; height: 48px;
  background: linear-gradient(180deg, rgba(111,184,62,0.35), rgba(111,184,62,0.6) 50%, rgba(111,184,62,0.35));
  animation: flow-pulse 2s ease-in-out infinite;
}
.flow-connector::before,
.flow-connector::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}
.flow-connector::before {
  top: 0;
  border-bottom: 6px solid rgba(111,184,62,0.6);
}
.flow-connector::after {
  bottom: 0;
  border-top: 6px solid rgba(111,184,62,0.6);
}
@keyframes flow-pulse {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 1; }
}
.flow-wrapper {
  display: flex; flex-direction: column; align-items: center; gap: 48px;
}
.flow-item { position: relative; }

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

/* STORY SECTION */
.story {
  padding: 7rem 2rem;
  background: var(--warm-white);
}
.story-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.story-visual-side {
  position: relative;
}
.story-stat-block {
  background: var(--navy-deep); border-radius: 20px;
  padding: 2.5rem; color: #fff; position: relative; overflow: hidden;
}
.story-stat-block::after {
  content: ''; position: absolute; bottom: -40px; right: -40px;
  width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(74,119,41,0.3), transparent 70%);
}
.stat-row { display: flex; gap: 2.5rem; margin-top: 1.75rem; position: relative; z-index: 1; }
.stat-item { text-align: left; }
.stat-num {
  font-family: var(--font-heading);
  font-size: 2.4rem; font-weight: 700; color: var(--green-glow); line-height: 1;
}
.stat-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.5); margin-top: 0.35rem; }
.story-badge {
  position: absolute; top: -35px; right: 2rem;
  background: var(--green); color: #fff; border-radius: 24px;
  padding: 0.5rem 1.1rem; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(74,119,41,0.35);
}
/* HOW IT WORKS */
.how {
  padding: 7rem 2rem;
  background: var(--cream);
  position: relative;
}
.how::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,61,92,0.12), transparent);
}
.how-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  display: flex; align-items: center; gap: 0.75rem;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--e-global-color-0a1d7b1); margin-bottom: 0.75rem;
}
.section-label::before { content: ''; width: 24px; height: 2px; background: var(--e-global-color-0a1d7b1); }
.how-header { max-width: 580px; }
.how-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700; line-height: 1.25; color: var(--navy);
}
.how-header p {
  margin-top: 1rem; font-size: 0.95rem; color: var(--text-mid); line-height: 1.7;
}
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem;
  margin-top: 3.5rem;
}
.step {
  position: relative; padding: 2rem 1.75rem;
  background: #fff; border-radius: 16px;
  border: 1px solid rgba(0,61,92,0.08);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.2s;
}
.step:hover {
  border-color: rgba(74,119,41,0.3);
  box-shadow: 0 8px 32px rgba(0,61,92,0.08);
  transform: translateY(-3px);
}
.step-number {
  font-family: var(--font-heading);
  font-size: 3.5rem; font-weight: 700; color: rgba(0,61,92,0.07);
  line-height: 1; position: absolute; top: 1rem; right: 1.5rem;
}
.step-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--green));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.3rem;
}
.step h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 0.5rem; }
div.step,.step p { font-size: 0.82rem; line-height: 1.7; color: var(--text-light); }

/* USE CASES (PAIN POINTS) */
.usecases { padding: 7rem 2rem; background: var(--warm-white); }
.usecases-inner { max-width: 1100px; margin: 0 auto; }
.usecases-header { text-align: center; max-width: 640px; margin: 0 auto; }
.usecases-header h2 {
  font-family: "Tactic Sans Regular", Sans-serif;
  font-size: clamp(1.9rem, 3.2vw, 2.5rem);
  font-weight: 700; line-height: 1.25;
}
.usecases-header p { margin-top: 1rem; font-size: 0.95rem; line-height: 1.7; }
.cases-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 3rem;
}
.case-card {
  display: grid; grid-template-columns: auto 1fr; gap: 1.25rem;
  align-items: start; padding: 1.75rem;
  background: #fff; border-radius: 14px;
  border: 1px solid rgba(0,61,92,0.07);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.case-card:hover {
  border-color: rgba(74,119,41,0.25);
  box-shadow: 0 6px 24px rgba(0,61,92,0.06);
}
.case-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,61,92,0.08), rgba(74,119,41,0.12));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.case-card h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.4rem; }
.case-card p { font-size: 0.8rem; line-height: 1.7;
}
.sub-menu li {
	background-color: var(--ast-global-color-primary)
}


.products-container {
    display: grid;
    /*grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));*/
    grid-template-columns: repeat(auto-fit, minmax(40%, 1fr));
    gap: 2rem;
    max-width: 100%;
    margin: 0 auto;
}

.product-card {
    background: var(--ast-global-color-secondary);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.product-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--cream);
    font-weight: bold;
    font-family: var(--font-heading);
}

.product-description {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid var(--cream);
}

.product-name {
    font-size: 1.5rem;
    color: var(--navy);
    margin-bottom: 1rem;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    color: var(--green);
    font-weight: 700;
}

.price-period {
    font-size: 1rem;
    color: #666;
}

.product-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    padding: 0.25rem 0;
}

.feature-icon {
    color: var(--green);
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.feature-text {
    color: #555;
    line-height: 1.5;
}

.product-actions {
    margin-top: auto;
}

.btn-select {
    width: 100%;
    background: var(--green);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-select:hover {
    background: var(--green-light);
    transform: translateY(-2px);
}

.btn-select:active {
    transform: translateY(0);
}

.error-message,
.info-message {
    max-width: 600px;
    margin: 2rem auto;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}

.error-message {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.info-message {
    background: #e8f5e9;
    border: 1px solid #c8e6c9;
    color: #2e7d32;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

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

    .products-container {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 1.5rem;
    }

    .price-amount {
        font-size: 2rem;
    }
}

