/*
 * BIGDBM – Shared Responsive Stylesheet
 * Applies to all pages. Linked after inline <style> so it takes precedence.
 * Breakpoints: ≤767 px (mobile), 768–1023 px (tablet)
 */

/* ══════════════════════════════════════════════
   HAMBURGER BUTTON  (hidden on desktop)
══════════════════════════════════════════════ */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid #EEEEF0;
  border-radius: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   TABLET  768 – 1023 px
══════════════════════════════════════════════ */
@media (max-width: 1023px) {

  /* Navbar padding */
  .navbar-inner { padding-left: 20px !important; padding-right: 20px !important; }

  /* Suite – kill sticky left column */
  .suite-inner { flex-direction: column !important; }
  .suite-heading {
    width: 100% !important;
    position: static !important;
    padding: 0 !important;
  }
  .suite-card { height: auto !important; min-height: 0 !important; }

  /* Homepage hero smaller title */
  .hero-title { font-size: 44px !important; line-height: 1.2 !important; }

  /* Insights: 2-col wrap */
  .insights-grid { flex-wrap: wrap !important; gap: 20px !important; }
  .insight-card { min-width: calc(50% - 10px) !important; }

  /* Footer wrap */
  .footer-top { flex-wrap: wrap !important; gap: 32px !important; }
  .footer-brand, .footer-col { min-width: calc(50% - 16px) !important; }

  /* Vertical hero */
  .hero-inner { gap: 32px !important; }
  .hero-image { width: 340px !important; }
  .hero h1 { font-size: 40px !important; }

  /* Audiences 2-col */
  .audiences-grid { grid-template-columns: repeat(2, 1fr) !important; }

  /* Product pages */
  .different-inner { gap: 24px !important; }
  .diff-img { width: 260px !important; height: 260px !important; }
  .results-grid { grid-template-columns: 1fr 1fr !important; }
  .result-card:nth-child(even) { border-right: none !important; }
  .result-card { border-bottom: 1px solid #EEEEF0 !important; }

  /* About who-inner */
  .who-inner { flex-direction: column !important; gap: 32px !important; }
  .who-text { width: 100% !important; }

  /* About hero pills 2-col */
  .hero-pills { grid-template-columns: repeat(2, 1fr) !important; }
}

/* ══════════════════════════════════════════════
   MOBILE  ≤767 px
══════════════════════════════════════════════ */
@media (max-width: 767px) {

  /* Kill scroll-snap entirely */
  html { scroll-snap-type: none !important; }

  /* Prevent horizontal overflow */
  body { overflow-x: hidden !important; }
  * { max-width: 100%; }
  /* (except intentional scrollable containers) */
  .steps-card { overflow-x: auto; }

  /* ── HAMBURGER visible ── */
  .nav-hamburger { display: flex !important; }

  /* ── NAVBAR ── */
  .navbar { height: auto !important; align-items: flex-start !important; }
  .navbar-inner {
    flex-wrap: wrap !important;
    padding: 10px 16px !important;
    gap: 8px !important;
    align-items: center !important;
  }
  .navbar-logo { order: 1; flex: 1; }
  .navbar-actions { order: 2; gap: 8px !important; }
  .nav-hamburger { order: 3; }

  /* Collapse nav links – hidden by default */
  .navbar-links {
    display: none !important;
    order: 4;
    width: 100% !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 8px 0 12px !important;
    gap: 0 !important;
    border-top: 1px solid #EEEEF0;
    margin-top: 4px;
  }

  /* Show when toggled open */
  .navbar-inner.nav-open .navbar-links { display: flex !important; }

  .nav-item {
    height: auto !important;
    padding: 10px 0 !important;
    font-size: 15px !important;
    width: 100%;
  }
  .nav-item img { display: none !important; }

  /* Dropdowns always open on mobile (no hover) */
  .nav-dropdown { width: 100%; }
  .dropdown-menu {
    display: flex !important;
    position: static !important;
    transform: none !important;
    min-width: 0 !important;
    padding: 4px 0 4px 16px !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 0 !important;
  }
  .dropdown-item { padding: 6px 0 !important; font-size: 13px !important; }

  /* Action buttons compact */
  .navbar-actions .btn-sm-secondary,
  .navbar-actions .btn-sm-primary {
    padding: 8px 12px !important;
    font-size: 13px !important;
    line-height: 18px !important;
  }

  /* ── SECTION PADDING – all sections ── */
  .hero,
  .verticals,
  .suite,
  .trusted,
  .insights,
  .pain-points,
  .workflows,
  .what-you-get,
  .audiences,
  .key-features,
  .different,
  .how-it-works,
  .use-cases,
  .results,
  .who,
  .what,
  .leadership,
  .values,
  .stats-band,
  .join {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  .cta-banner {
    padding: 56px 16px !important;
  }
  footer {
    padding-left: 16px !important;
    padding-right: 16px !important;
    padding-top: 48px !important;
  }

  /* ── HOMEPAGE HERO ── */
  .hero-title {
    font-size: 30px !important;
    line-height: 1.2 !important;
  }
  .hero-content {
    padding: 56px 16px !important;
    gap: 20px !important;
    text-align: center !important;
  }
  .hero-actions {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
  }
  .hero-actions a,
  .btn-lg-primary,
  .btn-lg-secondary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center;
  }
  /* hero background: remove large absolute glows that expand page */
  .hero-glow-left, .hero-glow-right { display: none !important; }

  /* ── VERTICALS GRID ── */
  .section-title {
    font-size: 26px !important;
    line-height: 1.3 !important;
  }
  .verticals-grid { gap: 10px !important; }
  .vertical-card {
    width: calc(50% - 5px) !important;
    min-height: 110px !important;
    padding: 16px 10px !important;
  }
  .vertical-card img { width: 36px !important; height: 36px !important; }
  .vertical-label { font-size: 12px !important; }

  /* ── SUITE ── */
  .suite-inner { flex-direction: column !important; gap: 20px !important; }
  .suite-heading { width: 100% !important; position: static !important; padding: 0 !important; }
  .suite-title { font-size: 26px !important; line-height: 1.3 !important; }
  .suite-card {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }
  .suite-card-image {
    display: block !important;
    width: 100% !important;
    height: 190px !important;
    max-height: 190px !important;
    padding: 0 !important;
    overflow: hidden !important;
  }
  .suite-card-image img {
    display: block !important;
    width: 100% !important;
    height: 190px !important;
    max-height: 190px !important;
    object-fit: cover !important;
    object-position: center !important;
    border-radius: 0 !important;
  }
  .suite-card-content {
    padding: 20px !important;
    order: unset !important;
  }
  .suite-card-title { font-size: 18px !important; }

  /* ── CTA BANNER ── */
  .cta-title,
  .cta-banner h2 { font-size: 26px !important; line-height: 1.3 !important; }
  .cta-subtitle  { font-size: 15px !important; }
  .cta-actions,
  .cta-buttons {
    flex-direction: column !important;
    width: 100% !important;
    gap: 10px !important;
    align-items: stretch !important;
  }
  .cta-actions a,
  .cta-buttons a,
  .btn-white,
  .btn-purple,
  .btn-outline,
  .btn-cta-outline,
  .btn-cta-primary {
    width: 100% !important;
    text-align: center !important;
    justify-content: center !important;
    display: flex !important;
    align-items: center;
  }

  /* ── TRUSTED BY ── */
  .trusted-title { font-size: 22px !important; }
  .trusted-sub   { font-size: 15px !important; }
  .logos-row {
    justify-content: center !important;
    gap: 16px 24px !important;
  }
  .logos-row img { height: 24px !important; }

  /* ── INSIGHTS ── */
  .insights-title { font-size: 26px !important; line-height: 1.3 !important; }
  .insights-grid {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .insight-card { min-width: 0 !important; }

  /* ── FOOTER ── */
  .footer-top {
    flex-direction: column !important;
    gap: 28px !important;
  }
  /* product-page footer uses grid */
  .footer-top[style*="grid"],
  .footer-inner .footer-top {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .footer-brand,
  .footer-col {
    min-width: 100% !important;
    width: 100% !important;
  }
  .footer-bottom {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  /* ──────────────────────────────────────────
     VERTICAL PAGES
  ────────────────────────────────────────── */

  /* Hero: stack image below text */
  .hero-inner {
    flex-direction: column !important;
    gap: 28px !important;
  }
  .hero h1 {
    font-size: 28px !important;
    line-height: 1.25 !important;
  }
  .hero p { font-size: 15px !important; line-height: 1.6 !important; }
  .hero-image {
    width: 100% !important;
    max-width: 100% !important;
  }
  .hero-image img {
    width: 100% !important;
    height: auto !important;
  }
  .hero-eyebrow { font-size: 11px !important; }

  /* Pain points – 1 col */
  .pain-grid { grid-template-columns: 1fr !important; gap: 12px !important; }
  .pain-card { padding: 20px 18px !important; }

  /* Workflows – 1 col */
  .workflows-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .workflow-card { padding: 24px 20px !important; }

  /* What You Get panel */
  .wyg-inner {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .wyg-left { padding: 28px 20px !important; border-radius: 0 !important; }
  .wyg-left h2 { font-size: 24px !important; }
  .wyg-right { padding: 20px 16px !important; }
  .wyg-item {
    grid-template-columns: 1fr !important;
    gap: 6px !important;
    padding: 14px 0 !important;
  }

  /* Audiences – 2 col on mobile (small cards) */
  .audiences-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .audience-card img { height: 120px !important; object-fit: cover !important; }
  .audience-card-label {
    font-size: 11px !important;
    padding: 10px 8px !important;
  }

  /* ──────────────────────────────────────────
     PRODUCT PAGES
  ────────────────────────────────────────── */

  /* Hero (product pages – centered text, no side image) */
  .hero h1,
  .key-features ~ .hero h1 { font-size: 28px !important; line-height: 1.25 !important; }
  .hero p { max-width: 100% !important; }

  /* Key features – 1 col */
  .features-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    max-width: 100% !important;
  }

  /* "How it's Different" – 1 col, image full-width */
  .different h2,
  .how-it-works h2 { font-size: 26px !important; line-height: 1.3 !important; }
  .different-inner {
    grid-template-columns: 1fr !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    align-items: stretch !important;
  }
  .diff-card { width: 100% !important; }
  .diff-img {
    width: 100% !important;
    height: 220px !important;
    order: -1;
  }

  /* How it Works steps */
  .steps-card { padding: 28px 12px 20px !important; }
  .steps-bar { display: none !important; }
  .steps-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 16px !important;
  }
  .step-content h4 { font-size: 13px !important; }
  .step-content p  { font-size: 12px !important; }

  /* Results grid – 2×2 */
  .results-header { flex-direction: column !important; align-items: flex-start !important; gap: 14px !important; }
  .results-header h2 { font-size: 26px !important; }
  .results-grid {
    grid-template-columns: 1fr 1fr !important;
    display: grid !important;
  }
  .result-card { border-right: none !important; border-bottom: 1px solid #EEEEF0 !important; }
  .result-card:last-child { border-bottom: none !important; }

  /* ──────────────────────────────────────────
     ABOUT PAGE
  ────────────────────────────────────────── */
  .hero-title { font-size: 30px !important; line-height: 1.2 !important; }
  .hero-subtitle { font-size: 15px !important; }
  .hero-pills {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .hero-pill { padding: 16px !important; }
  .hero-pill strong { font-size: 15px !important; }

  /* hero min-height gone */
  .hero { min-height: 0 !important; }
  .hero-inner { padding: 56px 16px 48px !important; }

  /* Who We Are */
  .who-inner { flex-direction: column !important; gap: 28px !important; }
  .who-text { width: 100% !important; }
  .who-title { font-size: 26px !important; line-height: 1.3 !important; }
  .who-body  { font-size: 15px !important; }
  .stat-number { font-size: 26px !important; }

  /* What We Do cards */
  .what-title { font-size: 26px !important; line-height: 1.3 !important; }
  .what-grid { gap: 16px !important; }
  .what-card {
    width: 100% !important;
    padding: 24px 20px !important;
  }

  /* Leadership */
  .leadership-title { font-size: 26px !important; }
  .team-cards { flex-direction: column !important; }

  /* ──────────────────────────────────────────
     UTILITY: max-width guards
  ────────────────────────────────────────── */
  img { max-width: 100% !important; height: auto; }
  .suite-card-image img { width: 100% !important; height: 190px !important; max-height: 190px !important; object-fit: cover !important; object-position: center !important; }

  /* Ensure no element breaks layout */
  .suite-inner,
  .footer-top,
  .hero-actions,
  .cta-actions,
  .cta-buttons { max-width: 100% !important; }

  /* Scroll snap OFF */
  .hero,
  .verticals,
  .suite,
  .cta-banner,
  .trusted,
  .insights,
  footer {
    scroll-snap-align: none !important;
    scroll-snap-stop: normal !important;
  }
}
