/* ==========================================================================
   qh-industry-hero.css
   Industries hero: mid-dark slate theme with white calculator card,
   fused proof strip, diagonal wedge transition.
   ========================================================================== */

/* ---------- Keyframes ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ---------- Hero wrapper ---------- */
.qh-hero.is-industry {
  position: relative;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 60%, #334155 100%) !important;
  color: #f1f5f9;
  overflow: visible;
  display: flex;
  flex-direction: column;
  padding: clamp(48px, 5vw, 72px) 0 96px !important;
  border-top: none !important;
  border-image: none !important;
}

/* Kill the base hero ::after diagonal and ::before mesh (qh-combined.css creates them) */
.qh-hero.is-industry::after,
.qh-hero.is-industry::before {
  display: none !important;
}

/* Diagonal overlay div at the bottom of the hero.
   Needs !important to beat .qh-hero.is-dark > * { position: relative } [0,2,0] */
.qh-hero.is-industry .qh-industry-diag {
  position: absolute !important;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: #fff;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  z-index: 3 !important;
  pointer-events: none;
}

/* Hide the section sub-nav entirely on industry pages */
[data-zone="industries"] .qh-section-nav {
  display: none !important;
}

/* ---------- Hero grid ---------- */
.qh-hero.is-industry .qh-hero__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

/* ---------- Left column ---------- */
.qh-hero.is-industry .qh-hero__left {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Overline with pulse dot */
.qh-hero.is-industry .qh-hero__overline {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #06B6D4;
}

.qh-hero.is-industry .qh-hero__overline::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #06B6D4;
  animation: pulse 2s ease-in-out infinite;
}

/* Headline — needs high specificity to beat .qh-hero.is-split:not(.is-dark-section) h1 [0,4,1] */
.qh-hero.is-split.is-industry .qh-hero__title,
.qh-hero.is-split.is-industry h1 {
  font-family: 'Satoshi', sans-serif !important;
  font-size: clamp(28px, 3.6vw, 46px) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  color: #f1f5f9 !important;
  letter-spacing: -0.02em !important;
  margin: 0;
}

/* Sub-headline */
.qh-hero.is-split.is-industry .qh-hero__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1rem, 1.2vw + 0.25rem, 1.2rem);
  color: rgba(255,255,255,0.7) !important;
  font-weight: 400;
  line-height: 1.6;
  color: #94a3b8;
  max-width: 520px;
  margin: 0;
}

/* CTA row */
.qh-hero.is-industry .qh-hero__cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.qh-hero.is-industry .qh-hero__cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  background: var(--qh-accent, #3B82F6);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1)),
              transform 0.15s var(--qh-ease-spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.qh-hero.is-industry .qh-hero__cta-primary:hover {
  background: var(--qh-accent-hover, #2563EB);
  transform: translateY(-1px);
}

.qh-hero.is-industry .qh-hero__cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.qh-hero.is-industry .qh-hero__cta-ghost:hover {
  color: #ffffff;
}

/* Reassurance line — handled in <style is:inline> in the component */

/* Standards pills */
.qh-hero.is-industry .qh-hero__standards {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.qh-hero.is-industry .qh-hero__standard-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
}

.qh-hero.is-industry .qh-hero__standard-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* ---------- Right column ---------- */
.qh-hero.is-industry .qh-hero__right {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
}

/* ---------- Calculator card ---------- */
.qh-industry-calc {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px 20px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.15), 0 1px 4px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 14px;
  color: #1e293b;
  width: 100%;
}

.qh-industry-calc__header {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.qh-industry-calc__title {
  font-family: 'Satoshi', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.qh-industry-calc__desc {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

/* Input groups */
.qh-industry-calc__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.qh-industry-calc__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.qh-industry-calc__label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

.qh-industry-calc__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.qh-industry-calc__input {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1));
  -webkit-appearance: none;
  appearance: none;
}

.qh-industry-calc__input:focus {
  border-color: var(--qh-accent, #3B82F6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.qh-industry-calc__suffix {
  position: absolute;
  right: 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #94a3b8;
  pointer-events: none;
}

/* Slider */
.qh-industry-calc__slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

.qh-industry-calc__slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--qh-accent, #3B82F6);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 0.15s var(--qh-ease-spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.qh-industry-calc__slider::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.qh-industry-calc__slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--qh-accent, #3B82F6);
  border: 2px solid #ffffff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.qh-industry-calc__slider-labels {
  display: flex;
  justify-content: space-between;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

/* Mobile pill buttons — hidden on desktop */
.qh-calc-pill {
  display: none;
}

.qh-calc-pills {
  display: none;
}

/* ---------- Result area ---------- */
.qh-industry-calc__result {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 10px;
  text-align: center;
}

.qh-industry-calc__result-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qh-industry-calc__result-value {
  font-family: 'Satoshi', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, #06B6D4, #3B82F6);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.qh-industry-calc__result-sub {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #94a3b8;
}

/* ---------- Contact gate ---------- */
.qh-calc-gate {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s var(--qh-ease-spring, cubic-bezier(0.16, 1, 0.3, 1)),
              opacity 0.3s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.qh-calc-gate.is-open {
  max-height: 280px;
  opacity: 1;
}

.qh-calc-gate__input {
  width: 100%;
  padding: 10px 12px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1));
  -webkit-appearance: none;
  appearance: none;
}

.qh-calc-gate__input:focus {
  border-color: var(--qh-accent, #3B82F6);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.qh-calc-gate__input::placeholder {
  color: #94a3b8;
}

.qh-calc-gate__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background: var(--qh-accent, #3B82F6);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background 0.2s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1)),
              transform 0.15s var(--qh-ease-spring, cubic-bezier(0.16, 1, 0.3, 1));
}

.qh-calc-gate__submit:hover {
  background: var(--qh-accent-hover, #2563EB);
  transform: translateY(-1px);
}

.qh-calc-gate__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Savings breakdown ---------- */
.qh-calc-expand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.4s var(--qh-ease-spring, cubic-bezier(0.16, 1, 0.3, 1)),
              opacity 0.3s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.qh-calc-expand.is-open {
  max-height: 400px;
  opacity: 1;
}

.qh-calc-expand__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #f1f5f9;
}

.qh-calc-expand__row:last-child {
  border-bottom: none;
}

.qh-calc-expand__label {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #475569;
}

.qh-calc-expand__value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
}

.qh-calc-expand__toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--qh-accent, #3B82F6);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.qh-calc-expand__toggle:hover {
  color: var(--qh-accent-hover, #2563EB);
}

/* ---------- Calc CTA button (strong) ---------- */
.qh-industry-calc__cta {
  display: block;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #3B82F6, #2563EB);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.3);
  transition: all 0.2s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1));
}
.qh-industry-calc__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}
.qh-industry-calc__cta.is-open {
  background: #f1f5f9;
  color: #64748b;
  box-shadow: none;
}

/* ---------- Fused proof strip (on dark hero background) ---------- */
.qh-industry-proof {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}

.qh-industry-proof__inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* KPI row — 4-column grid */
.qh-industry-proof__kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.qh-industry-proof__kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 10px;
  text-align: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  transition: all 0.25s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.qh-industry-proof__kpi:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.qh-industry-proof__kpi-value {
  font-family: 'Satoshi', sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}

.qh-industry-proof__kpi-label {
  font-family: 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  text-align: center;
}

/* Quote row — avatar | text | CTA in a horizontal line */
.qh-industry-proof__quote-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
}

.qh-industry-proof__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
}

.qh-industry-proof__quote-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.qh-industry-proof__quote-text {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.45;
  margin: 0;
}

.qh-industry-proof__quote-cite {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}

.qh-industry-proof__quote-cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 16px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #06B6D4;
  background: rgba(6, 182, 212, 0.08);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: 8px;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
  transition: background 0.2s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1));
}

.qh-industry-proof__quote-cta:hover {
  background: rgba(6, 182, 212, 0.15);
}

/* ---------- Scroll nudge ---------- */
.qh-hero.is-industry .qh-hero__scroll-nudge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding-bottom: 24px;
  margin-top: auto;
}

.qh-hero.is-industry .qh-hero__scroll-nudge span {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.qh-hero.is-industry .qh-hero__scroll-nudge svg {
  width: 20px;
  height: 20px;
  color: #475569;
  animation: bob 2s ease-in-out infinite;
}

/* Diagonal handled by .qh-industry-diag overlay div */

/* ---------- No entrance animations — content must be visible immediately ---------- */

/* ---------- Responsive: tablet (900px) ---------- */
@media (max-width: 900px) {
  .qh-hero.is-industry .qh-hero__grid {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 24px;
  }

  .qh-industry-calc {
    max-width: 440px;
  }

  .qh-hero.is-industry {
    padding-bottom: 76px !important;
  }

  .qh-industry-diag {
    height: 60px;
  }
}

/* ---------- Responsive: mobile (640px) ---------- */
@media (max-width: 640px) {
  .qh-hero.is-industry .qh-hero__grid {
    padding: 0 16px;
    gap: 24px;
  }

  .qh-hero.is-industry {
    padding-top: clamp(64px, 16vw, 88px) !important;
    padding-bottom: 66px !important;
  }

  .qh-industry-calc {
    max-width: 100%;
    padding: 20px 16px;
  }

  /* Show mobile pills, hide sliders */
  .qh-calc-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .qh-calc-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 8px 16px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1)),
                border-color 0.15s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1)),
                color 0.15s var(--qh-ease, cubic-bezier(0.4, 0, 0.2, 1));
  }

  .qh-calc-pill.is-active {
    color: var(--qh-accent, #3B82F6);
    background: rgba(59, 130, 246, 0.08);
    border-color: var(--qh-accent, #3B82F6);
  }

  .qh-industry-calc__slider,
  .qh-industry-calc__slider-labels {
    display: none;
  }

  /* Prevent iOS auto-zoom */
  .qh-industry-calc__input,
  .qh-calc-gate__input {
    font-size: 16px;
  }

  /* KPIs: 2x2 grid */
  .qh-industry-proof__kpis {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .qh-industry-proof__kpi {
    padding: 10px 8px;
    border-radius: 8px;
  }

  .qh-industry-proof__kpi-value {
    font-size: 20px;
  }

  .qh-industry-proof__kpi-label {
    font-size: 10px;
  }

  /* Quote row stacked */
  .qh-industry-proof__quote-row {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 8px;
    padding: 10px 12px;
  }

  .qh-industry-proof__avatar {
    margin: 0 auto;
  }

  .qh-industry-proof__quote-cta {
    width: 100%;
    justify-content: center;
  }

  .qh-hero.is-industry .qh-hero__cta-primary {
    width: 100%;
    justify-content: center;
  }

  .qh-industry-proof {
    padding: 0 16px;
  }

  .qh-industry-diag {
    height: 50px;
  }
}

/* ---------- Responsive: small mobile (374px) ---------- */
@media (max-width: 374px) {
  .qh-hero.is-industry .qh-hero__title {
    font-size: clamp(1.6rem, 5vw, 2rem);
  }

  .qh-hero.is-industry .qh-hero__subtitle {
    font-size: 0.9rem;
  }

  .qh-industry-calc__result-value {
    font-size: 26px;
  }

  .qh-industry-proof__kpi-value {
    font-size: 20px;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .qh-hero.is-industry .qh-hero__left > *,
  .qh-industry-calc,
  .qh-industry-proof__inner {
    animation: none;
    opacity: 1;
  }

  .qh-hero.is-industry .qh-hero__overline::before {
    animation: none;
  }

  .qh-hero.is-industry .qh-hero__scroll-nudge svg {
    animation: none;
  }

  .qh-calc-gate,
  .qh-calc-expand {
    transition: none;
  }
}
